'sudo id -G <username>' vs 'id -G' issue
Karl Auer
kauer at biplane.com.au
Thu Nov 3 09:53:12 UTC 2016
On Thu, 2016-11-03 at 09:39 +0100, Ralf Mardorf wrote:
> Failed to connect to Mir: Failed to connect to server socket: No such
> file or directory
> Unable to init server: Could not connect: Connection refused
That's 'cos you are in a new shell.
It's not clear to me what you are actually trying to do, or why you
would need to change a logged-in user's group memberships... something
I am fairly sure is not possible.
Can you explain what you are trying to do in general terms?
I haven't tried this, but maybe you could use exec su - $USER to
replace your running shell with a new shell including the new group? I
don't think that would help with the sockets thing, but it would
prevent stacking up shells. Also look at "man sg", but I think that
will still end up running the command in a new shell.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389
GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
More information about the ubuntu-users
mailing list