no auto login
Posted: 10 May 2012, 06:17
Hi all
Im using xfce rc1 at the mo and am very pleased. there is one cheatcode missing I belive, if you use "toroot" it will automatically log in as root, otherwise it will log in as guest, but what if I dont want to log in automatically?
here is the work around Im but would prefer a proper solution in mainstream porteus.
/etc/rc.M line 224
GX
Im using xfce rc1 at the mo and am very pleased. there is one cheatcode missing I belive, if you use "toroot" it will automatically log in as root, otherwise it will log in as guest, but what if I dont want to log in automatically?
here is the work around Im but would prefer a proper solution in mainstream porteus.
/etc/rc.M line 224
Code: Select all
# switch to root account
if egrep -qo " toroot( |\$)" /proc/cmdline; then
sed -i s/AutoLoginUser=guest/AutoLoginUser=root/g /usr/share/config/tdm/tdmrc 2>/dev/null
sed -i s/AutoLoginUser=guest/AutoLoginUser=root/g /usr/share/config/kdm/kdmrc 2>/dev/null
sed -i s/autologin=guest/autologin=root/g /etc/lxdm/lxdm.conf 2>/dev/null
elif egrep -qo " noautologin( |\$)" /proc/cmdline; then
# do nothing
else
sed -i s/AutoLoginUser=root/AutoLoginUser=guest/g /usr/share/config/tdm/tdmrc 2>/dev/null
sed -i s/AutoLoginUser=root/AutoLoginUser=guest/g /usr/share/config/kdm/kdmrc 2>/dev/null
sed -i s/autologin=root/autologin=guest/g /etc/lxdm/lxdm.conf 2>/dev/null
fi
GX