[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rm files owned by root?



This one time, at band camp, Luis M said:
> if you are in group adm and the /home allows adm group to write to it,
> you will be able to remove the directory "test? inside /home/
> 
> to be "right" you will need to do this:
> 
> as root:
> chmod 0700 /home
> mkdir /home/test
> chmod 0 /home/test
> ls -ld /home/test
> 
> should show root:root owner of /home/test and /home is owned by root:adm 
> the permissions of /home 0700
> the permissions of /home/test same as before.
> 
> now login with id 1001 and try to remove the directory.

No, you have made the parent directory no longer group writable.  There
is a difference between who owns it, and what their permissions are.
Basic *nix stuff here, people.
-- 
 -----------------------------------------------------------------
|   ,''`.					     Stephen Gran |
|  : :' :					 sgran@debian.org |
|  `. `'			Debian user, admin, and developer |
|    `-					    http://www.debian.org |
 -----------------------------------------------------------------

Attachment: pgpdt0REMI1EY.pgp
Description: PGP signature


Reply to: