12 Mar
2008
12 Mar
'08
11:38 a.m.
I need to change gid so that I can successfully execute a fusermount command (it's indirectly via encfs). If I don't do "newgroup fuse" then the mount fails with a permission denied error. However I want to wrap this up in a script and, as I have discovered when trying to do it, when you execute newgrp you get a new shell so the script that is running newgrp only continues when you exit from the newly created shell. While it may be inherently necessary for newgrp to execute a new shell I wish the man page had told me as it was rather confusing initially. So, how do I automate changing GID? All I actually want to do is:- newgrp fuse encfs /<encrypted directory> /<unencrypted mount> -- Chris Green