From c66617dd8e84ca05777fd6d72ab71ddc93f3e50f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 15 Jan 2011 21:32:34 -0500 Subject: [PATCH] Add newgrp post. --- posts/newgrp.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 posts/newgrp.mdwn 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]] -- 2.26.2