Results 1 to 9 of 9

Thread: autologin at background

  1. #1
    Join Date
    May 2009
    Beans
    11

    Question autologin at background

    I've created an user called 'server' (his task is to run a server and some web daemons). Now I want him to autologin at system startup, but do it at background, i.e. I dont want to see his desktop. I just want to see the login screen, but this user should be already logged in.
    how can I reach this?

  2. #2
    Join Date
    Jun 2008
    Location
    Tennessee
    Beans
    3,421

    Re: autologin at background

    Most services allow you to configure what user they run as; you don't need to actually log in a user to make it happen.

    What are the particular services you want this user to run?

  3. #3
    pricetech is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Apr 2008
    Beans
    1,651

    Re: autologin at background

    Will he have to adjust the runlevels at which the services run as well ??

  4. #4
    Join Date
    May 2009
    Beans
    11

    Re: autologin at background

    this is good news. I'm going to run my homemade ruby scripts such as jabber-bot and maybe web server. AFAIK, I can create the scripts in /etc/init.d/, but I don't want to run them with root permissions. Also I don't want to run them under my own account.

  5. #5
    Join Date
    May 2009
    Beans
    11

    Re: autologin at background

    Quote Originally Posted by pricetech View Post
    Will he have to adjust the runlevels at which the services run as well ??
    i dont know

  6. #6
    Join Date
    May 2009
    Beans
    11

    Re: autologin at background

    Quote Originally Posted by pricetech View Post
    Will he have to adjust the runlevels at which the services run as well ??
    I'm going to use the computer the way I did before, so I want to keep everything at its place. But the new user needs no window system, I can manage him via console. Is it answer for your question?

  7. #7
    pricetech is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Apr 2008
    Beans
    1,651

    Re: autologin at background

    Sorry. I should have specifically addressed the question to lykwydchykyn. I know him and he's good at Linux. I occasionally get to pick his brain myself.

  8. #8
    Join Date
    Jun 2008
    Location
    Tennessee
    Beans
    3,421

    Re: autologin at background

    Shouldn't have to mess with runlevels.

    If these are custom scripts, you should be able to add the following line to /etc/rc.local, before the line that says "exit 0":

    Code:
    su username -c "my_script.whatever" &
    where "username" is the name of the user you want running the script, and "my_script.whatever" is the name of your custom script. I'd recommend using full paths to the files in question.

  9. #9
    Join Date
    May 2009
    Beans
    11

    Re: autologin at background

    thank you, it works fine

Tags for this Thread

Bookmarks

Posting Permissions

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