Re: public rights to files/folders
On Thu, Feb 24, 2005 at 04:52:42PM -0600, 5dollarwhitebox.org wrote:
> Vegard,
>
> If you have no need for security in this folder, and all users are
> "trusted", then you can set the permissions so that everything in the folder
> is 'rwx', for the owner, group, and everyone else.
>
> # chmod -R 777 /path/to/your/folder
>
> That will change the permissions of the folder, and everything inside of
> it... and everybody will be able to read, delete, create, traverse dirs,
> execute... etc...
>
> In order to 'automatically' make everything created in this folder word
> readable/writable ... you can use this command:
>
> # umask 0000 /path/to/your/folder
>
> After that, all 'files' will automatically be set to "666" or '-rw-rw-rw-',
> and directories will be created as "777" or 'drwxrwxrwx'.
>
> -----------------------------------------------
Beware! ALL files and directories created after you change this (for
that login session) will be affected, not just the ones in
/path/to/your/folder. The second argument to umask is ignored. This
is a huge security risk.
--
Russell Steicke
-- Fortune says:
He who fights and runs away lives to fight another day.
Reply to: