Re: chmod, chgrp and symlinks

From: Nico Kadel-Garcia (nkadel@bellatlantic.net)
Date: 02/04/03


From: "Nico Kadel-Garcia" <nkadel@bellatlantic.net>
Date: Tue, 04 Feb 2003 01:10:05 GMT


"Ramazan Jah-Far" <ramazanjf@svitonline.com> wrote in message
news:slrnb3t6cm.1au.ramazanjf@localhost.localdomain...
> Hi!
> In comp.os.linux.security, luc wastiaux wrote:
> lw> And other than installing the openwall kernel or patching chmod/chgrp
> lw> are there other ways of making my script secure ?
>
> Try this: instead of
> chown -R luc.mp3 $dir/luc/
> use
> chown -R --no-dereference luc:mp3 $dir/luc/
> etc. But I think chown doesn't dereference symlinks
> by default :).

You've *completely* ignored hard links.



Relevant Pages

  • Re: chmod, chgrp and symlinks
    ... lw> And other than installing the openwall kernel or patching chmod/chgrp ... lw> are there other ways of making my script secure? ...
    (comp.os.linux.security)
  • Re: chmod, chgrp and symlinks
    ... > Yeah thats a known vuln that no one seems to care about :-). ... And other than installing the openwall kernel or patching chmod/chgrp are ...
    (comp.os.linux.security)

Quantcast