* Busybox adduser cannot create system user "no uids left"
@ 2013-08-29 15:19 Samuel Stirtzel
2013-08-30 2:16 ` ChenQi
0 siblings, 1 reply; 3+ messages in thread
From: Samuel Stirtzel @ 2013-08-29 15:19 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Hi,
with the current master/HEAD it seems impossible to create system
users with busybox.
root@overo:~# which adduser
/usr/sbin/adduser
root@overo:~# ls -la /usr/sbin/adduser
lrwxrwxrwx 1 root root 19 Aug 29 2013
/usr/sbin/adduser -> /bin/busybox.nosuid
root@overo:~# adduser --system --ingroup lightdm lightdm
adduser: no uids left
Normal user creation works as expected.
Content of /etc/passwd:
root:x:0:0:root:/home/root:/bin/sh
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
messagebus:x:999:998::/var/lib/dbus:/bin/false
xuser:x:1000:1000::/home/xuser:/bin/sh
avahi:x:998:994::/var/run/avahi-daemon:/bin/false
avahi-autoipd:x:997:993:Avahi autoip daemon:/var/run/avahi-autoipd:/bin/false
polkitd:x:996:992::/etc/polkit-1:/bin/sh
Can anyone reproduce this error, or is it a known problem?
--
Regards
Samuel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Busybox adduser cannot create system user "no uids left"
2013-08-29 15:19 Busybox adduser cannot create system user "no uids left" Samuel Stirtzel
@ 2013-08-30 2:16 ` ChenQi
2013-09-05 9:41 ` Samuel Stirtzel
0 siblings, 1 reply; 3+ messages in thread
From: ChenQi @ 2013-08-30 2:16 UTC (permalink / raw)
To: openembedded-core
On 08/29/2013 11:19 PM, Samuel Stirtzel wrote:
> Hi,
>
> with the current master/HEAD it seems impossible to create system
> users with busybox.
>
>
> root@overo:~# which adduser
> /usr/sbin/adduser
> root@overo:~# ls -la /usr/sbin/adduser
> lrwxrwxrwx 1 root root 19 Aug 29 2013
> /usr/sbin/adduser -> /bin/busybox.nosuid
> root@overo:~# adduser --system --ingroup lightdm lightdm
> adduser: no uids left
>
>
> Normal user creation works as expected.
> Content of /etc/passwd:
>
> root:x:0:0:root:/home/root:/bin/sh
> daemon:x:1:1:daemon:/usr/sbin:/bin/sh
> bin:x:2:2:bin:/bin:/bin/sh
> sys:x:3:3:sys:/dev:/bin/sh
> sync:x:4:65534:sync:/bin:/bin/sync
> games:x:5:60:games:/usr/games:/bin/sh
> man:x:6:12:man:/var/cache/man:/bin/sh
> lp:x:7:7:lp:/var/spool/lpd:/bin/sh
> mail:x:8:8:mail:/var/mail:/bin/sh
> news:x:9:9:news:/var/spool/news:/bin/sh
> uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
> proxy:x:13:13:proxy:/bin:/bin/sh
> www-data:x:33:33:www-data:/var/www:/bin/sh
> backup:x:34:34:backup:/var/backups:/bin/sh
> list:x:38:38:Mailing List Manager:/var/list:/bin/sh
> irc:x:39:39:ircd:/var/run/ircd:/bin/sh
> gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
> nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
> messagebus:x:999:998::/var/lib/dbus:/bin/false
> xuser:x:1000:1000::/home/xuser:/bin/sh
> avahi:x:998:994::/var/run/avahi-daemon:/bin/false
> avahi-autoipd:x:997:993:Avahi autoip daemon:/var/run/avahi-autoipd:/bin/false
> polkitd:x:996:992::/etc/polkit-1:/bin/sh
>
>
> Can anyone reproduce this error, or is it a known problem?
>
>
That's because CONFIG_SYSTEM_LAST_ID is set to 0 in defconfig.
I'll send out a patch to fix it.
Best Regards,
Chen Qi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Busybox adduser cannot create system user "no uids left"
2013-08-30 2:16 ` ChenQi
@ 2013-09-05 9:41 ` Samuel Stirtzel
0 siblings, 0 replies; 3+ messages in thread
From: Samuel Stirtzel @ 2013-09-05 9:41 UTC (permalink / raw)
To: ChenQi; +Cc: Patches and discussions about the oe-core layer
2013/8/30 ChenQi <Qi.Chen@windriver.com>:
>
> That's because CONFIG_SYSTEM_LAST_ID is set to 0 in defconfig.
> I'll send out a patch to fix it.
>
> Best Regards,
> Chen Qi
Hi,
sorry for the late answer, yes this would be great.
All "manual" installations (e.g. make && make install && useradd ...)
are affected.
Until now I did not test any packages that use the useradd.bbclass and
are installed after do_rootfs.
I suspect these package installations (that create system users) are
also broken, but I need to test it.
--
Regards
Samuel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-05 9:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-29 15:19 Busybox adduser cannot create system user "no uids left" Samuel Stirtzel
2013-08-30 2:16 ` ChenQi
2013-09-05 9:41 ` Samuel Stirtzel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox