From: W. Trevor King Date: Sun, 16 Jan 2011 02:32:34 +0000 (-0500) Subject: Add newgrp post. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c66617dd8e84ca05777fd6d72ab71ddc93f3e50f;p=mw2txt.git Add newgrp post. --- diff --git a/posts/newgrp.mdwn b/posts/newgrp.mdwn new file mode 100644 index 0000000..a00b367 --- /dev/null +++ b/posts/newgrp.mdwn @@ -0,0 +1,11 @@ +When you add a user to a new group, you're often told you need to log +out and log back in for the new membership to take effect. If you're +at the terminal running [[screen]], this is no big deal, but it can be +annoying if you're running a lot of graphical stuff that doesn't +suspend and resume so easily. Luckily there is `newgrp` which can +adjust your current group ID to match the new group: + + $ usermod -a -G groupname username + $ newgrp groupname + +[[!tag tags/linux]]