Howto login as root with no password (automatically)
I'm currently creating a Live CD using Slackware Linux, and I would like to know how it would be possible for the CD to automatically login as root without prompting for a username and password (Just the way Knoppix does it)
I tried: "/bin/bash --login" - however, once it automatically gets logged in as root, most of the environment variables are missing and it only recognizes the root home as "/" rather than "/root" ... I also tried exactly the way Knoppix did it in its inittab and I got the same result as "/bin/bash --login" (/etc/inittab for the first terminal entry, which is by default using agetty). Does it require a modification for some other setting? |
All times are GMT -5. The time now is 07:30 PM. |