Difference between revisions of "Ubuntu:permissions"

From DiLab
Jump to: navigation, search
(New page: Adding existing user to a group sudo usermod -a -G <group> <user>)
 
Line 1: Line 1:
=Adding user to an existing group=


sudo usermod -a -G <group> <user>


Adding existing user to a group
=Add user to a group without logoff=


Usually you need to logout and login again for the new group permissions to take effect.
sudo usermod -a -G <group> <user>

But you can skip the logout and login if you do this after adding the user to the group:

newgroup my-new group

Revision as of 11:48, 29 May 2012

Adding user to an existing group

sudo usermod -a -G <group> <user>

Add user to a group without logoff

Usually you need to logout and login again for the new group permissions to take effect.

But you can skip the logout and login if you do this after adding the user to the group:

newgroup my-new group