HOW TO : disable autologin

How to Guides for Linux, Linpus etc..

Moderator: Davidcowling

HOW TO : disable autologin

Postby janss » Thu Jul 24, 2008 6:55 pm

Edit: This thread is several months old and Linpus has had many updates since these instructions were written. Some or all of these instructions might have been broken or may not work anymore after new updates. Try these settings at your own risk!

Didn't find a topic about this one yet, so I thought I'd post one.

I prefer to keep some sort of security on my computers, and the One logging in automatiacally really bugs me, but after hours of surfing on the web and looking through the system I havent found a way to disable the feature. The system does have GDM installed, but GDM says autologin is disabled, so it's made somewhere else...

Has anyone found a way to do it or maybe found out that it can not be done at all..?

Oh, and I tried the BIOS password, but it sucked big time because it only supports 8 characters and they have to be IN CAPITALS which is pretty annoying.




---
edit: [solved] - moving to How To -section
tweaking better use of pearly white One - 1,5 GB / 8 GB SSD, 6 cell, Ubuntu 8.10
resident mod of hardware/linux sections
janss
 
Posts: 234
Joined: Wed Jul 23, 2008 9:40 am

Re: How to disable autologin?

Postby jack » Thu Jul 24, 2008 8:24 pm

gdm is installed but is not running.

X is started directly with the call to xinit in /etc/rc.d/rc.S

You could try commenting thta line out and running gdm from there maybe?
jack
 
Posts: 28
Joined: Thu Jul 24, 2008 9:39 am

Re: How to disable autologin?

Postby janss » Fri Jul 25, 2008 7:11 am

Thanks for the info, I'll try to look up what I can do from there :mrgreen:

jack wrote:gdm is installed but is not running.

X is started directly with the call to xinit in /etc/rc.d/rc.S

You could try commenting thta line out and running gdm from there maybe?
tweaking better use of pearly white One - 1,5 GB / 8 GB SSD, 6 cell, Ubuntu 8.10
resident mod of hardware/linux sections
janss
 
Posts: 234
Joined: Wed Jul 23, 2008 9:40 am

Re: How to disable autologin?

Postby janss » Sun Jul 27, 2008 11:15 am

Damn... couldn't get anywhere from there with this...

Any other ideas or preferrably solutions? :geek:
tweaking better use of pearly white One - 1,5 GB / 8 GB SSD, 6 cell, Ubuntu 8.10
resident mod of hardware/linux sections
janss
 
Posts: 234
Joined: Wed Jul 23, 2008 9:40 am

Re: How to disable autologin?

Postby jack » Sun Jul 27, 2008 4:33 pm

Just tried running gdm from rc.S and it worked fine for me.

What specifically is going wrong?
jack
 
Posts: 28
Joined: Thu Jul 24, 2008 9:39 am

Re: How to disable autologin?

Postby janss » Tue Jul 29, 2008 5:55 am

What kind of edits did you do to the rc.S?
I was trying to look for something connected with autologin from there, but now I see you meant that I should run gdm from there (I can sometimes be a bit illiterate :P ). Can you post a little description of what you did to it and how it affected your system?

I'm just a bit worried that I'll end up locking my whole system if I screw with it.

Thanks for your help!

jack wrote:Just tried running gdm from rc.S and it worked fine for me.

What specifically is going wrong?
tweaking better use of pearly white One - 1,5 GB / 8 GB SSD, 6 cell, Ubuntu 8.10
resident mod of hardware/linux sections
janss
 
Posts: 234
Joined: Wed Jul 23, 2008 9:40 am

Re: How to disable autologin?

Postby jack » Tue Jul 29, 2008 8:19 am

Sure,

Edit /etc/rc.d/rc.S

Find the line '/usr/bin/xinit -- -br>/dev/null 2>&1 &' and comment it out (Stick a # at the start of the line).

On a new line after that, put

/usr/sbin/gdm

Save & reboot.

Remember that the username is 'user' and the password is whatever you set up during install.

I would also comment out the DontVTSwitch line in /etc/X11/xorg.conf, so if the GUI has any major problems you can get to a text console and re-edit files from there.
jack
 
Posts: 28
Joined: Thu Jul 24, 2008 9:39 am

Re: How to disable autologin?

Postby janss » Tue Jul 29, 2008 9:33 am

Thanks man, that's great! :D

I'll try that as soon as I get home from work.
tweaking better use of pearly white One - 1,5 GB / 8 GB SSD, 6 cell, Ubuntu 8.10
resident mod of hardware/linux sections
janss
 
Posts: 234
Joined: Wed Jul 23, 2008 9:40 am

Re: How to disable autologin?

Postby janss » Tue Jul 29, 2008 2:06 pm

Just tested what you said and it works like a charm!
GDM is enabled and I get a login-screen on boot-up, perfect :ugeek:

Thanks once more!
tweaking better use of pearly white One - 1,5 GB / 8 GB SSD, 6 cell, Ubuntu 8.10
resident mod of hardware/linux sections
janss
 
Posts: 234
Joined: Wed Jul 23, 2008 9:40 am

Re: HOW TO : disable autologin

Postby daymz » Tue Jul 29, 2008 3:51 pm

I was looking for a way to do this also and the solution described here works great !

The DontVTSSwitch set to "no" also works fine. Xfce4 is running in console 7 (Alt+Control+F7) and the shell is in console 1 (Alt+Control+F1) -- which has the bootup Acer background and looking funny, but otherwise fully functional.

Thanks !
daymz
 
Posts: 44
Joined: Mon Jul 28, 2008 2:48 pm
Location: Montreal, QC, Canada

Next

Return to How to Guides - Linux

Who is online

Users browsing this forum: No registered users and 1 guest