Changing the 'default' group when creating files
When a user is a member of more than 1 group, which setting determines what group is used when creating files and directories?
Ex.: user A is member of the groups 'cats' and 'dogs'. When he creates a file, user A is the owner, and per default, 'cats' is used as the owning group. 'cats' is always used. How can I change this to always being 'dogs' instead? Thanks for your time :) |
Try
Code:
usermod -g dogs <username> |
It is the main (primary) group for the user. You can temporarily switch the primary group to one of the auxiliary groups using the sg command in terminal, in much the same way that you can switch to another user using su. For example:
Code:
% groups |
Solved
Quote:
|
All times are GMT -5. The time now is 11:36 PM. |