Score:0

Unable to Write, Permission denied

tz flag

As an apache user, I was trying edit some files owned by a different user, lets call it docroot

drwxrwxrwx  2 docroot    docroot      327 Feb 15 20:34 .
drwxr-xr-- 53 docroot    docroot     8192 Jan 31 17:49 ..
-rwxrwxrwx  1 docroot    docroot     1453 Jun  6  2022 targetfile

shell:id -Gn
apache docroot

but was unable to modify targetfile echo "I should be allowed" >> targetfile or create a file there with echo "hmm" > newfile or with touch newfile as it would result in

Permission Denied

I just casually tried again, everything worked, I was able to create or modify files but then suddenly it stopped working again,

Now have files owned by apache that I cannot remove or change with -rw-r--r-- 1 apache apache perms, whats wrong?

I don't have sudo/su access,

OS: Centos 7.9.2009

apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin
SELinux status:                 disabled
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.