0

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
asim
  • 101
  • 1

0 Answers0