create new user

roger peppe roger.peppe at canonical.com
Thu Jun 11 15:05:27 UTC 2015


On 11 June 2015 at 15:27, Sergio Schvezov <sergio.schvezov at canonical.com> wrote:
> On Thu, Jun 11, 2015 at 03:13:01PM +0100, roger peppe wrote:
>> I'd quite like to make a new user on my snappy instance (so that I don't
>> need to use "ssh ubuntu at ..." every time), but I get this response:
>>
>> ubuntu at localhost:~$ sudo adduser rog
>> Adding user `rog' ...
>> Adding new group `rog' (1001) ...
>> groupadd: cannot lock /etc/group; try again later.
>> adduser: `/usr/sbin/groupadd -g 1001 rog' returned error code 10. Exiting.
>> ubuntu at localhost:~$
>>
>> What am I doing wrong?
>
> Nothing, /etc/group and /etc/passwd are read only.
>
> Someone needs to teach adduser to look at lib-nssextrausers

Presumably you mean libnss-extrausers there? Interesting,
I hadn't come across libnss-extrausers before. I succeeded
by adding a line manually to /var/lib/extrausers/{password,shadow}
and creating the user directory by hand.

Thanks.



More information about the snappy-devel mailing list