http://qs1969.pair.com?node_id=378559


in reply to Re^2: Hijacking perl functions
in thread Hijacking perl functions

If the user doesn't have the proper perms to chmod the old config how is the script going to relace the old one with the new one?

-Nitrox

Replies are listed 'Best First'.
Re^4: Hijacking perl functions
by mhi (Friar) on Jul 30, 2004 at 06:14 UTC
    Under *NIX file systems you need to have perms on the file to chmod it. To delete it (better: to unlink it), you merely need the right perms on the containing directory. To prevent users that have write-perms on a directory from deleting other users' files, you have to set the so-called sticky-bit on the directory.