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

[SOLVED] RE: public rights to files/folders



> 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'.
>
> -----------------------------------------------
>
> further more, if you would like the created files/folders to be owned by
> the
> same group you can add the sticky bit like so...
>
> # chmod g+s /path/to/your/folder
>
> therefore, everything created in that folder shall have the same group
> ownership as the folder.
>
> -----------------------------------------------
>
> hope that is what you were looking for.
>
> BJ
>
This worked nicely!! Thanks a bunch,

best regards Vegard



Reply to: