Permissions for shared directory: r/w for all human users

Hi,
I would like to have a directory

/home/shared

where all human users have r/w permission for all files and sub-directories under this path.
Can I achieve this buy just setting the permissions correctly or do I need to do something else?

thanks for any advice that leads to an elegant solution to this.
Peter

I suppose you mean ‘human users’ as in members of the group users, not just anybody, i.e. world read- and writable?

Hi,

Hi,

If, as root, you do

 chmod 666 /home/shared 

everybody should be able to reed/write form that directory.

Please note that that means everybody! (I’m not sure what you mean by “humans”?).

HTH

Lenwolf

Ah, you need the x bit also otherwise people cannot browse the directory.

On 09/13/2011 08:16 AM, lenwolf wrote:
>
> Please note that that means everybody!

not really! for example i will not have access from my machine, unless
he also (for example) sets up SSHD (or FTPD or …) and . . .

so, it really does require him to specify who among “all human users”
should have read/write perms…


DD
openSUSE®, the “German Automobiles” of operating systems

Usually user group ‘users’ is set for all “human” users (not system daemons etc…)

So the correct commands should be:

chown root:users /home/shared
chmod g+rwx /home/shared/

Setting the sticky bit might be a good idea as well (For directories, it prevents unprivileged users from removing or renaming a file in the directory unless they own the file or the directory, so users cannt deleted each onther files, see ‘man chmod’ for details):

chmod +t /home/shared/

If the group ‘users’ is not what you want to use use can use ACLs and set fine the priviledges for each user (some might have r/w, some read-only access, etc…), see ‘man setfacl’ (esp. the examples at the end).

Note: ACLs must be enabled on the filesystem, see ‘acl’ option in the mount options.

Hi, thanks for all your suggestions.
By human users I do mean members of the group “users”.
So I think the suggestion by Islezak:

chown root:users /home/shared
chmod g+rwx /home/shared/

is what I was looking for.
But without setting the sticky bit, because I want user A to be able to delete/change files by user B.