IT Questions and Answers :)

Thursday, December 21, 2017

drw-r-x-wx 2 terry staff 4096 Mar 10 14:29 Secret <== Based on permissions assigned to user (terry), group (staff), and other, which non-root users have permission to remove files in directory "Secret?"

drw-r-x-wx 2 terry staff 4096 Mar 10 14:29 Secret <== Based on permissions assigned to user (terry), group (staff), and other, which non-root users have permission to remove files in directory "Secret?"

  • Both owner "terry" and group "staff" members
  • Any user in "other"
  • The owner, user "terry"
  • Any member of group "staff" 
drw-r-x-wx 2 terry staff 4096 Mar 10 14:29 Secret <== Based on permissions assigned to user (terry), group (staff), and other, which non-root users have permission to remove files in directory "Secret?"

EXPLANATION

To remove a file, a user needs write and access (execute) permission on the directory. That is, -wx at minimum.
The user does not need read permission on the directory to remove a file if the name is known, but read permission on the directory would be required to discover the filename, for example, with "ls".
User "terry", the owner, does not have access to the directory (x is absent for user).

SOURCE

https://www.hackinglinuxexposed.com/articles/20030424.html
Share:

0 comments:

Post a Comment

Popular Posts