[OE-core] Tinylogin or shadow?

Martin Jansa martin.jansa at gmail.com
Tue Sep 6 09:20:43 UTC 2011


Hi,

if someone wants to use only shadow as login manager, then all postinst
calling adduser (instead of useradd) are failing ie:

recipes-connectivity/avahi/avahi.inc:   grep "^avahi:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/run/avahi-daemon --no-create-home avahi --ingroup avahi -g Avahi
recipes-connectivity/avahi/avahi.inc:   grep "^avahi-autoipd:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/lib/avahi-autoipd --no-create-home avahi-autoipd --ingroup avahi-autoipd -g "Avahi autoip daemon"
recipes-connectivity/openssh/openssh_5.8p2.bb:          adduser --system --home /var/run/sshd --no-create-home --disabled-password --ingroup sshd -s /bin/false sshd
recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb:      adduser --system --home /dev/null --no-create-home --empty-password --ingroup nogroup -s ${sbindir}/ppp-dialin ppp
recipes-core/dbus/dbus.inc:             adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password \
recipes-devtools/distcc/distcc_2.18.3.bb:               grep distcc /etc/passwd || adduser --system --home /dev/null --no-create-home --empty-password --ingroup nogroup distcc
recipes-graphics/x11-common/xserver-nodm-init.bb:        adduser --disabled-password $username
recipes-multimedia/pulseaudio/pulseaudio.inc:            adduser --disabled-password --home=/var/run/pulse --system \
recipes-support/hal/hal.inc:    grep haldaemon /etc/passwd || adduser --disabled-password --system --home /var/run/hald --no-create-home haldaemon --ingroup haldaemon -g HAL

What is preferred fix, I plan to add u-a to shadow to provide adduser alternative 
or add RCONFLICT between tinylogin and shadow as we don't want some passwd entries
from tinylogin and some from shadow (when both installed at the same time.
Someone with better idea or even patches for it?

Just in case, list of files provided by both login managers:

bash-4.1# opkg files shadow
Package shadow (4.1.4.3-r4) is installed on root and has the following
files:
/usr/sbin/useradd
/usr/sbin/groupadd
/usr/sbin/groupmems
/usr/sbin/pwck
/etc/securetty
/usr/bin/newgrp.shadow
/usr/sbin/usermod
/usr/bin/chsh.shadow
/usr/sbin/groupmod
/etc/default/useradd
/usr/bin/chfn.shadow
/usr/sbin/nologin
/usr/bin/expiry
/usr/bin/passwd.shadow
/usr/sbin/userdel
/usr/sbin/groupdel
/usr/bin/sg
/usr/bin/su
/usr/sbin/newusers
/etc/login.access
/sbin/vigr.shadow
/usr/bin/groups
/usr/sbin/grpconv
/usr/sbin/logoutd
/usr/sbin/chgpasswd
/usr/sbin/grpck
/usr/sbin/chpasswd.shadow
/usr/bin/gpasswd
/bin/login.shadow
/usr/sbin/grpunconv
/sbin/vipw.shadow
/usr/bin/faillog
/usr/sbin/pwconv
/var/spool/mail/
/usr/bin/chage
/usr/bin/lastlog
/etc/login.defs
/etc/limits
/usr/sbin/pwunconv

bash-4.1# opkg files tinylogin
Package tinylogin (1.4-r7) is installed on root and has the following
files:
/bin/login
/bin/su
/bin/addgroup
/sbin/sulogin
/usr/bin/passwd
/bin/delgroup
/usr/bin/vlock
/bin/tinylogin
/bin/deluser
/sbin/getty
/bin/adduser


-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20110906/f8f1423e/attachment-0002.sig>


More information about the Openembedded-core mailing list