[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] File permissions fun
2008/12/20 Ted Harding <Ted.Harding@xxxxxxxxxxxxxxxx>:
> 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.
Hmm - I was always given to understand that execute permissions on a
directory meant that the directory could be listed / searched, rather
than merely seeing whether a given file was present within it
(conveyed by the R bit) (qv.
http://www.dartmouth.edu/~rc/help/faq/permissions.html)
Nonetheless, write permission on a directory means the ability to
delete files within that directory, which might be the easiest way to
get there from here (you won't be able to write individual files per
se, but you will be able to open -> change -> delete original ->
save).
Another way of hacking it might be to stick a "chmod g+w
<photodirectory>/*" in the appropriate crontab.
For doing exactly what Dave requires, it looks as though ACLs might be needed:
http://www.linuxformat.co.uk/index.php?name=PNphpBB2&file=viewtopic&t=9118&start=0&postdays=0&postorder=asc&highlight=
Hope this is of some use,
Chris
(PS. Richard, please feel free to delete the mails I sent earlier from
freelance@xxxxxxxxxxxxxx that will have ended up blocked)
_______________________________________________
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