Find the answer to your Linux question:
Results 1 to 5 of 5
Hi Is it possible to have a user automatically logged in when the computer boots? I know there might be security issues and its not a great idea, but i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    239

    automatic logon


    Hi

    Is it possible to have a user automatically logged in when the computer boots? I know there might be security issues and its not a great idea, but i wont use it for root... Thing is, i have a pc which i dont really want a monitor and keyboard for, and at the moment the only thing i use them for is to log on at the start, and unfortuanatly i cant have the pc running all the time.

    Any advice would be appriciated. Thanks.

  2. #2
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    239
    sorry, one otherthing

    I was looking for a way of doing it without having to use a graphical login manager, i only have 64mb memory and so its not great! although if that is the only way, advice on how to set that up would be aprciaited.

    Thanks

  3. #3
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,407
    I think you should be able to have /etc/rc.d/r.local call a script that would do it, but that is a guess
    Brilliant Mediocrity - Making Failure Look Good

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    239
    Yeah, thanks!

    Incase anyone else wants to do it,

    edit /etc/rc.d/rc.local

    and add the following lines:

    echo "auto login for username"
    cd /home/username
    su - username


    just replace username with the username u want logged in.

    Thanks for your help/

  6. #5
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Just to let you know.

    You don't need to be logged in to run it without a keyboard and monitor. It will run services just fine not logged in at all
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

Posting Permissions

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