[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] File permissions fun
On 20-Dec-08 14:41:20, David Smith wrote:
> Just wondering if anyone could help with a bit of a file-permissions
> query that's confusing me at the moment?
>
> I want to set up a folder (for photos) that my wife and I both have
> full read-write access to, where we can both create, edit and delete
> files (including ones created by each other).
>
> I have got as far as to put us both into a group called 'photoshare'.
> I have set the group for the folder to 'photoshare' and set the 'set
> group id' attribute (chmod g+s <foldername>).
>
> This means that all the files created in that folder inherit the
> 'photoshare' group.
>
> However, the group permissions on these files still default to
> read-only. Is there any way to set the group permissions *for just
> this folder* to default to +rw? I understand you can use the 'umask'
> option to set the default permissions for all files, but not sure if
> it is possible for a single folder.
>
> Any suggestions?
> Davo
> --
> Web: http://www.davosmith.co.uk
Without knowing what you've called the folder, let's call it
"photoshare".
Then, as whatever user has rights to change permissions on it
(root will do nicely) go to the parent directory of it, and
then execute:
chmod 660 photoshare
which will give the owner, and anyone in the "photoshare" group,
permission to read and write within the directory. If you want to
broaden the permissions, then 770 gives "execute" permission to
owner and group (which, for a folder/directory, means that the
other permissions apply recirsively). And, to include anyone else
in the permissions, then change the third ("0") to whatever you
want it to be.
Hoping this helps,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@xxxxxxxxxxxxxxxx>
Fax-to-email: +44 (0)870 094 0861
Date: 20-Dec-08 Time: 18:00:30
------------------------------ XFMail ------------------------------
_______________________________________________
Sheffield Linux User's Group
http://sheflug.org.uk/mailman/listinfo/sheflug_sheflug.org.uk
FAQ at: http://www.sheflug.org.uk/mailfaq.html
GNU - The Choice of a Complete Generation