Page 1 of 1

login=root does not work

Posted: 15 Jan 2016, 15:46
by yys2000
Hi,

I add this cheatcode to script, but when I type the command: whoami. I still get the guest.
How to enable the auto root login?

Thanks :roll:

Re: login=root does not work

Posted: 15 Jan 2016, 20:10
by brokenman
I add this cheatcode to script
What exactly do you mean by this? What script and where?

Please answer the above question and we can start helping you. Thanks.

Re: login=root does not work

Posted: 22 Jan 2016, 23:18
by Cobai
yys2000 wrote:Hi,

I add this cheatcode to script, but when I type the command: whoami. I still get the guest.
How to enable the auto root login?

Thanks :roll:
You shouldn't need a 'script' to do this - it's simply added to the porteus.cfg file located in /boot/syslinux/porteus.cfg.

Mine looks like this for the GUI option i use: (Note the APPEND line)

Code: Select all

LABEL KDE4
MENU LABEL Graphics mode (KDE4)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/mnt/sda1/porteussave.dat volume=60% kmap=gb copy2ram noeject login=root
TEXT HELP
    Run Porteus the best way we can.
    Try to autoconfigure graphics
    card and use the maximum
    allowed resolution
ENDTEXT
Add the "login=root" to this or whichever mode you boot into and voila, root access on startup.

Also, i'm a complete linux newbie, literally learning as i go and this is my first post, woop :)