Why a normal user can remove this file?
by n00b_noob from LinuxQuestions.org on (#57WVG)
Hello,
The permission of the "/home" directory is as below:
Code:$ ls -l /home/
total 0
drwx------. 3 jason apache 170 Sep 8 20:33 jasonAnd below files exist in the home directory:
Code:$ ll
total 304020
-rw-r--r--. 1 root root 0 Sep 8 19:16 access_log
-rw-r--r--. 1 root root 5970706 Sep 8 19:17 wordpress_access.log"jason" can remove these files. is it because of that "jason" has permission on the "home" directory?
How can I understand a permission is "-R" ?
Thank you.


The permission of the "/home" directory is as below:
Code:$ ls -l /home/
total 0
drwx------. 3 jason apache 170 Sep 8 20:33 jasonAnd below files exist in the home directory:
Code:$ ll
total 304020
-rw-r--r--. 1 root root 0 Sep 8 19:16 access_log
-rw-r--r--. 1 root root 5970706 Sep 8 19:17 wordpress_access.log"jason" can remove these files. is it because of that "jason" has permission on the "home" directory?
How can I understand a permission is "-R" ?
Thank you.