no auto login

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
mailmegx
White ninja
White ninja
Posts: 29
Joined: 23 Mar 2012, 18:44
Distribution: Porteus 1.2 XFCE 64bit
Location: Cyprus

no auto login

Post#1 by mailmegx » 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

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

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: no auto login

Post#2 by fanthom » 10 May 2012, 08:28

hello mailmegx,

no problem - we can add this cheat to rc.M

@Ahau
please update cheatcodes.txt with noautologin description. something like:

Code: Select all

noautologin
stops Porteus booting process at kdm/lxdm screen where user needs to provide username and password and choose the desktop he wants to log in.
Please add [Solved] to your thread title if the solution was found.

mailmegx
White ninja
White ninja
Posts: 29
Joined: 23 Mar 2012, 18:44
Distribution: Porteus 1.2 XFCE 64bit
Location: Cyprus

Re: no auto login

Post#3 by mailmegx » 10 May 2012, 08:46

geat thanks

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: no auto login

Post#4 by Ahau » 10 May 2012, 15:25

how's this look?

Code: Select all

noautologin

   ... stops the Porteus startup process at the kdm/lxdm
       screen, so the user will need to provide a username
       and password to log in to their desired desktop
       environment.
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: no auto login

Post#5 by brokenman » 12 May 2012, 00:25

Since its inception porteus has always maintained the 'Text mode' boot option. Is this not what you are looking for?

autoexec=telinit~3
How do i become super user?
Wear your underpants on the outside and put on a cape.

mailmegx
White ninja
White ninja
Posts: 29
Joined: 23 Mar 2012, 18:44
Distribution: Porteus 1.2 XFCE 64bit
Location: Cyprus

Re: no auto login

Post#6 by mailmegx » 13 May 2012, 17:46

Hi brokenman

Not exactly, the code I sent was exactly the solution I wanted, the thing that was bugging me was lack of consistency i.e. there is a cheatcode for root and none for guest but no way nor neither. In my opinion t it should be toroot, toguest and nothing for login screen but since the other two already exist its best not to break backward compatibility.

GX

Post Reply