Add newgrp post.
authorW. Trevor King <wking@drexel.edu>
Sun, 16 Jan 2011 02:32:34 +0000 (21:32 -0500)
committerW. Trevor King <wking@drexel.edu>
Sun, 16 Jan 2011 02:32:34 +0000 (21:32 -0500)
posts/newgrp.mdwn [new file with mode: 0644]

diff --git a/posts/newgrp.mdwn b/posts/newgrp.mdwn
new file mode 100644 (file)
index 0000000..a00b367
--- /dev/null
@@ -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]]