Disable Autologin


Forum: Other Help Topics
Topic: Disable Autologin
started by: Vanilla

Posted by Vanilla on June 14 2004,20:37
Hi All!

Any chance to disable the Autologin?
If i try to start Runlevel 3, DSL is automatic login as root.


regards
Stefan

Posted by indomie_telor on June 16 2005,09:37
I Think you should reinstall your DSL .. and choose enable multiuser ..






Ryan
gitu kali mas .. coba ajah dulu

Posted by agus on July 25 2005,14:49
Well,
I tried doing dsl-hdinstall for multiusers and singleuser and I found the difference in /etc/inittab:

for singleuser with autologin:
< 1:12345:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1
< 2:234:respawn:/bin/bash -login >/dev/tty2 2>&1 </dev/tty2
< 3:234:respawn:/bin/bash -login >/dev/tty3 2>&1 </dev/tty3
< 4:234:respawn:/bin/bash -login >/dev/tty4 2>&1 </dev/tty4

for multiuser and no autoloin:
> 1:2345:respawn:/sbin/getty 115200 tty1
> 2:2345:respawn:/sbin/getty 115200 tty2
> 3:2345:respawn:/sbin/getty 115200 tty3
> 4:2345:respawn:/sbin/getty 115200 tty4

I haven't tried this myself.  Let me know if you find out anyhing.


Agus

Posted by mikshaw on July 25 2005,15:22
Agus is correct.  You don't need to reinstall...just edit a couple of files.
Use /sbin/getty instead of /bin/bash in /etc/inittab.
/.bash_profile should be edited to remove the lines concerning "su dsl" (or just delete that file if it will make things easier).
/home/dsl/.bash_profile should be edited to remove the lines concerning "startx".
You will also need to set up passwords if you haven't already done this.

This works for me, but another user has expressed that it didn't work for him, so it apparently isn't a universal solution.

Posted by dexdex on Nov. 04 2005,17:32
Is there a new solution to disable the autologin outthere? I replaced the bin/bash with sbin/getty and add the /etc/inittab to the backup filetool but it didnt work ;-( I can not use the multiuser hd-install because I use the usb stick with usb-zip pendrive install version.
Posted by mikshaw on Nov. 04 2005,20:04
It might be a backup problem.  I just recently learned that the restore is done by user 'dsl', so it cannot overwrite files in /etc.  Instead of adding the file to your backup, try making it a mydsl package which will be loaded by root.  There is a bit of info about this here (ke4nt's post):
< http://damnsmalllinux.org/cgi-bin....;t=4905 >

Posted by Kaiser on Nov. 08 2005,14:25
hi, I have another problem, but it might be at the right place here. I don't want to disable autologin but to autologin another user. I want to install the giantdisc player and this needs a user called 'music'.

maybe anyone can help...

thx
Kaiser (linux-noob)

Posted by mikshaw on Nov. 08 2005,15:24
What type of DSL installation to you have? LiveCD...Frugal...Debian-style....other?
Does the giantdisc player work already? If not, that should probably be fixed before moving on to the autologin.

Posted by Kaiser on Nov. 08 2005,22:28
I'm using the installed version on hd (DSL 1.5) it is the debian like (option 3 in the install menu) I think.

I thought it might be easier to get the autologin working for the user first instead of setting up a multiuser login, install giantdisk and after that turn back to singleuser... but maybe I'm wrong.

Posted by mikshaw on Nov. 09 2005,01:27
An application might need a specific user, but that does not mean that you have to be logged in as that user.  I don't know what giantdisk is, so this is just guessing.

You can change what user is logged in automatically in runlevel 5 by changing /.bash_profile.  Change "dsl" to "music".

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.