Ubuntu:permissions: Difference between revisions

From DiLab
Jump to navigation Jump to search
Content deleted Content added
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=Adding user to an existing group=
=Adding an existing user to an existing group=


sudo usermod -a -G <group> <user>
sudo usermod -a -G <group> <user>
Line 9: Line 9:
But you can skip the logout and login if you do this after adding the user to the group:
But you can skip the logout and login if you do this after adding the user to the group:


newgroup my-new group
newgrp my-new-group
newgrp

Latest revision as of 21:35, 7 November 2012

Adding an existing 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:

newgrp my-new-group
newgrp