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
signature.asc
Description: This is a digitally signed message part
-- Snapcraft mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
