Help me understand Ubuntu user/group permissions.
Posted
by Bartek
on Super User
See other posts from Super User
or by Bartek
Published on 2010-05-20T14:24:06Z
Indexed on
2010/05/20
14:32 UTC
Read the original article
Hit count: 351
I'm beginning to deal with more than one user on my system (it's a VPS serving some sites) and I need to make sure I understand how group permissions work.
Here's my setup:
I have an account named "admin" .. it's basically the primary account that is used for serving most of the sites that I control myself.
Now, I added a second account named "Ville" as one of my users wants to be able to administer that site.
So, I can do this the easy way and just chown
their domains folder under the ville
user and viola, they have permission to do whatever they need be and so forth.
However, let's say I want to also give the admin
user access to the files (modifying and all) .. how can I put both users into the same group and give them both permission?
I've tried doing: sudo usermod -a -G admin ville
To add the ville into the admin group, but ville still cannot edit files by admin
. Permissions for the primary directory for the ville
user are read/write for both owner and group, and the current group for the files is admin:admin
..
But ville
still can't write into the directory.
So, what should I be doing here to get this right and secure at the same time?
Thank you.
© Super User or respective owner