Results 1 to 3 of 3

Thread: Automatic Login As Root: inittab ?

  1. #1
    Member
    Join Date
    May 2007
    Posts
    202

    Default Automatic Login As Root: inittab ?

    Evening All

    I'm trying to remaster the live CD so that it bypasses the command line login and then runs a script.

    I think I need to edit inittab somehow, but I'm not sure exactly what I need to change.

    I'm fairly sure it's this bit I need to change:

    Code:
    c1:1235:respawn:/sbin/agetty 38400 linux tty1
    c2:1235:respawn:/sbin/agetty 38400 linux tty2 
    c3:1235:respawn:/sbin/agetty 38400 linux tty3 
    c4:1235:respawn:/sbin/agetty 38400 linux tty4 
    c5:1235:respawn:/sbin/agetty 38400 linux tty5 
    c6:12345:respawn:/sbin/agetty 38400 linux tty6
    I've tried adding -n to each line to login without a username/password, but that doesn't work.

    Anybody able to help with this? Thanks

  2. #2
    Senior Member
    Join Date
    Apr 2008
    Posts
    2,008

    Default

    Yes you will need to edit the /etc/inittab file, but the only change needed to automatically start KDE at startup is:
    Code:
    id:3:initdefault:
    to
    Code:
    id:4:initdefault:
    -Monkeys are like nature's humans.

  3. #3
    Member
    Join Date
    May 2007
    Posts
    202

    Default

    Hi, thanks for that

    I'm actually trying to login directly as root but at the command prompt (essentially just bypassing the standard root/toor login).

    Once I've logged in I also need to run a script (usermenu.sh), but I'm happy to take one thing at a time

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •