Group ownership in linux

1

I wondered why a non-root user cannot create a custom group and invite collaborators to that group. Say alice coops with bob, then alice wants to create a directory that only alice and bob can read and write to. Without permissions to create workgroup, the only option is to set the file permissions so that all users in the system have rwx permissions. But then regular user eve can clobber everything between alice and bob.

By using private groups, they can stop regular users from touching their files. I realise that this system would require that a group has an owner, and that alice cannot assign more rights to that group than alice currently has.

Are there other solutions for cooperation than relying on the native file permission system.

user877329

Posted 2014-05-28T13:19:48.360

Reputation: 679

Answers

1

You can use ACLs if your filesystem and your kernel supports it. In your case, alice could use something like setfacl -m u:bob:rwx directory, maybe with -Rfor it to be recursive.

user2313067

Posted 2014-05-28T13:19:48.360

Reputation: 2 160