autologinForum: Other Help Topics Topic: autologin started by: xmak Posted by xmak on Feb. 18 2005,15:30
I've searched and searched through /etc and init.d but I just can't figure out how to automatically log in some user when system starts.Is there anyone that could tell me about it. An where can I find the documentation about the init process of dsl? Posted by tronik on Feb. 18 2005,19:41
dsl's root using /.bash_profile. it su's to user 'dsl' in there, then user dsl's ~dsl/.bash_profile calls X.you should probably check out /.bash_profile the multiple terminals started with root are started by inittab, check /etc/inittab Posted by Agus on July 25 2005,14:51
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 friedgold on July 25 2005,20:00
This is my understanding of how DSL's autologin works:The /etc/inittab specifies that the root user should be automatically logged in
If the runlevel is equal to 5 (the default runlevel) it then switches to the 'dsl' user as specified in /.bash_profile:
The X Windows System is started as specified in /home/dsl/.bash_profile (this file originally resides in /etc/skel and is copied to /home/dsl/ by dsl-config).
|