UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to get my ubuntu server (7.10) box to automatically login. I have read alot of different threads which do it on other distributions but none seem to work with ubuntu. I need it to login as a certain users so my custom login-shell will run with the right privileges.
What do you mean exactly by "automatically log in"?
Are you trying to automatically log in with ssh (ie, ssh with no password prompt)? or are you trying to boot to an ubuntu desktop without being asked for a username/password?
auto login at the console. So it runs all of the boot scripts and then instead of asking for a username and password it goes straight into the command prompt. The sever don't have an ssh connection everything is done at the console.
This is a very bad idea, and Linux (and unix) aren't designed to let you do this without messing around in some easy to break areas.
It would be much better to leave a sticky note with a password on it stuck to the monitor.
There are some threads on this board discussing technical reasons why this is bad.
Man, you are talking this just because you want to protect the Linux Sistem, but if the proposal is to be free, i could do everything that i want, if it is not possible to do, is not free, it is like Windows, you just can do what someone let you do.
If it is not safe, i decide, not the sr. Linus. So i think that should have a solution for this, and we can found, but say that it is not a good idea, is ridiculous. I decide if it is a good idea or not.
I have found an alternative solution to my problem. I am booting into ubuntu's recovery mode which automatically logs in as root. Security for this server is not an issue as it does not have a critical application and is physical secured.
Man, you are talking this just because you want to protect the Linux Sistem, but if the proposal is to be free, i could do everything that i want, if it is not possible to do, is not free, it is like Windows, you just can do what someone let you do.
The system is free, you are welcome to learn the system and recode it to do whatever you want. That is not possible with Windows because you don't have the source to recode. I also did not say it was impossible, I just said it was not a good idea. As I mentioned, this is a fairly common question with quite a lot of threads you can look at if you want more information.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.