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

Re: Question on File Permissions



On Sun, Sep 22, 2002 at 09:54:14PM +0200, Gottfried Szing wrote:
> and for setting default permissions you can also consult the umask
> functionallity. but i think this is very dangerous to turn x on by
> default.

I can't think of a situation where it's dangerous to grant execute
permission, unless the executable is set-id. If you can read the file
then you can always copy it off somewhere else, set the execute bit
yourself, and execute it. If it isn't set-id and allows you to do
something bad, well, you could clearly have done that without the aid of
the executable.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: