Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am administering a hybrid server/workstation using Ubuntu 12.04. There are several users that have access to the PC, and it is also working as a simplified fileserver using samba. This fileserver is associated to an account, which also has a Dropbox account where certain folders are synchronized for remote (outside the local network) access.

I would like that the "server" user session to be started automatically, but without logging in to the desktop. In other words, I would like that the first screen showed after booting is LightDM, but with one account already started (and protected by a password).

Is it possible?

Thank you.

share|improve this question
Tell us why a specific user must be loged in but with a locked screen? i.e. example if you use a command via ssh you will exec the comands as a specific user witout beeing loged in. The WS must only run into the login-screen an the system is usable via ssh. – prophecy201 Feb 22 '13 at 13:53
The main reason is Dropbox. I need to autostart the Dropbox daemon that is user-specific. I tried some tutorials I found in internet, but they appear to be only for Ubuntu server, and they don't seem to work in my configuration. – nicocarbone Feb 22 '13 at 14:03
but they appear to be only for Ubuntu server, and they don't seem to work in my configuration. that sounds fishy. A daemon (for dropbox) does not care about a desktop. You should be able to do what you want without logging in. – Rinzwind Feb 22 '13 at 15:24

You can try to auto-login in the session and let execute a script on startup wich locks the screen in a few seconds. Probably not best practice, but the login is the start of a session, so I don't think you can start the session without a login.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.