AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

Why user can remove -rwx------ root's files?

  • 1.  Why user can remove -rwx------ root's files?

    Posted Wed January 06, 2010 05:13 AM

    Originally posted by: copper7


    Why a user is able to remove file owned by root.system with permissions 700?

    
    $ id uid=233(bart) gid=1000(users) groups=9(printq) $ pwd /home/bart $ df . Filesystem    512-blocks      Free %Used    Iused %Iused Mounted on /dev/hd1         4194304   1433436   65%    11836    13% /home $ ls -ld . drwxr-xr-x    9 bart  users           4096 Jan 06 09:24 . $ ls -al roots_file -rwx------    1 root     system         1070 Jan 05 11:41 roots_file $ echo ddd >roots_file The file access permissions 
    
    do not allow the specified action. ksh: roots_file: 0403-005 Cannot create the specified file. $ rm roots_file rm: Remove roots_file? y $ ls -al roots_file ls: 0653-341 The file roots_file does not exist.
    

    #AIX-Forum


  • 2.  Re: Why user can remove -rwx------ root's files?

    Posted Wed January 06, 2010 07:32 AM

    Originally posted by: tony.evans


    Because removing a file requires write access to the directory in which it resides, not to the file itself.
    #AIX-Forum