More Ubuntu-Core boot up problems...
Oliver Grawert
ogra at ubuntu.com
Wed Sep 7 13:01:54 UTC 2016
hi,
Am Mittwoch, den 07.09.2016, 08:54 -0400 schrieb MikeB:
> On 2016-09-07 at 06:56:38 -0400, MikeB wrote:
> >
> > However, when I try to add a new user, it fails as follows. I've
> > tried rebooting, etc, but that didn't change anything.
> New users have to be added to the extrausers files.
>
> sudo adduser --extrausers <name>
>
> works for adding a new user.
>
> However, the usermod command does not have an '--extrausers' option.
> All attempts to add my new user to the 'sudo' group fail with form of
> an error trying to lock '/etc/group'.
>
> Oddly, even adduser can't add a user to an existing group.
>
> sudo adduser --extrausers foo sudo
> Adding user `foo' to group `sudo' ...
> Adding user foo to group sudo
> gpasswd: cannot lock /etc/group; try again later.
> adduser: `/usr/bin/gpasswd -a foo sudo' returned error code 1.
> Exiting.
>
> That seems like a bug to me.
>
no, thats a design limitation ... the sudo group has to be in
/etc/groups which is in the readonly snap ...
https://bugs.launchpad.net/snappy/+bug/1495059 has a workaround via
adding a file to /etc/sudoers.d/
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160907/684e64b0/attachment.sig>
More information about the Snapcraft
mailing list