why can I not delete a file I own??
I logged into my server as user wordpressdev via ssh. I want to delete a file that belongs to wordpressdev but cannot:
Code:
[wordpressdev@host html]$ ls -al error_log this also baffles: Code:
[wordpressdev@host html]$ getfacl error_log |
Probably ownership of the "html" directory the file resides in?
|
Look at the access to the current directory rather than the file.
Code:
ls -ld |
You guys are both correct. Sorry for posting such a basic thing. The ownership of the directory was ok (root:wordpressdev) the problem was that it was 755 rather than 775. Sorry to trouble!
|
The file permissions control access to the contents of the file.
The directory permissions control access to the contents of the directory. A "directory" is really just a special kind of file; one that contains a list of the other files "in" it. If you have permission to alter this list, then you can add, delete, or rename a file, even if you don't have permission to access its contents (and vice-versa). http://content.hccfl.edu/pollock/AUn...ermissions.htm |
Quote:
|
All times are GMT -5. The time now is 11:31 PM. |