Ubuntu:permissions

From DiLab
Revision as of 00:35, 8 November 2012 by Leo (talk | contribs) (Add user to a group without logoff)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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