linux and users

T. V. Raman raman at users.sourceforge.net
Tue Mar 15 04:16:10 UTC 2005


the only drawback you have is that the console will not be owned
by you if you do this.
As a consequence you will find many things not working
mysteriously -- you could kluge it by giving yourself sudo perms
and running sudo chown in your login sequence.


>>>>> "Janina" == Janina Sajka <janina at rednote.net> writes:
    Janina> Thanks, TV. It's useful to know this.  What I like
    Janina> about the su command in inittab, is that I can set up
    Janina> my various consoles in the way I've come to like them
    Janina> setup. My thought is to just put vlock in
    Janina> /etc/rc.local, so it will all still be somewhat
    Janina> password protected, but I'll only need to enter
    Janina> root's password once, and all configurations will be
    Janina> up and ready to go.
    Janina> 
    Janina> This makes a lot of sense ot me with my laptop,
    Janina> primarily. The office/home desktops aren't such an
    Janina> issue because they're always sporting great
    Janina> uptimes. But the laptop is shutdown quite a lot when
    Janina> I'm on the road, so having autologin seems like a
    Janina> nice benefit.
    Janina> 
    Janina> T. V. Raman writes:
    >> 
    >> Janina -- Incidentally, if you then want to create other
    >> Virtual Consoles without having to type a password, from
    >> the shell that you got on tty1 just type open <program
    >> name>
    >> 
    >> this will launch the program <program name> on the next
    >> available VC which in a standard inittab situation is VC7
    >> -- so you'd hit alt-7 to get to it and so on.
    >> 
    >> In fact this is what X does during xinit which is why the
    >> first desktop is on VC77
    >> 
    >> 
    >> >>>>> "Janina" == Janina Sajka <janina at rednote.net>
    >> writes:
    Janina> Samuel Thibault writes:
    >> >> Shaun Everiss, le ven 25 fév 2005 05:56:41 +1300, a
    >> dit >> : > ... is there a autologon or something?
    >> >> 
    >> >> There is no standard I'm aware of for text mode, but
    >> you >> may build your own: in /etc/inittab, there are
    >> lines like: >> 1:2345:respawn:/sbin/getty 38400 tty1
    >> >> 
    >> >> You may replace this by 1:2345:respawn:/bin/su -c sh -
    >> >> yourlogin < /dev/tty1 > /dev/tty1 2>&1
    >> >> 
    Janina>
> Very, very cool, Samuel. Thank you. I have been looking for
    Janina> something like this to use on my portable machine for
    Janina> a long time. Thank you, thank you, thank you! <grin>
    Janina> 
    Janina> Now, one little refinement:
    Janina> 
    Janina> I suggest taking out the '-c sh' as it's superfluous
    Janina> and only launches a subshell and does not execute
    Janina> default configuration scripts.
    Janina> 
    Janina> So, I think a better invocation is:
    Janina> 
    Janina> 1:2345:respawn:/bin/su - yourlogin < /dev/tty1 >
    Janina> /dev/tty1 2>&1
    Janina> 
    Janina> 
    Janina> Sweet. Very sweet.
    Janina> 
    Janina> Janina
    Janina> 
    Janina> _______________________________________________
    Janina> Blinux-list mailing list Blinux-list at redhat.com
    Janina> https://www.redhat.com/mailman/listinfo/blinux-list
    >> 
    >> -- 
    >> Best Regards, --raman
    >> 
    >> 
    >> Email: raman at users.sf.net WWW:
    >> http://emacspeak.sf.net/raman/ AIM: emacspeak PGP:
    >> http://emacspeak.sf.net/raman/raman-almaden.asc
    >> 
    >> _______________________________________________
    >> Blinux-list mailing list Blinux-list at redhat.com
    >> https://www.redhat.com/mailman/listinfo/blinux-list
    Janina> 
    Janina> --
    Janina> 
    Janina> Janina Sajka Phone: +1.202.494.7040 Partner, Capital
    Janina> Accessibility LLC http://www.CapitalAccessibility.Com
    Janina> 
    Janina> Chair, Accessibility Workgroup Free Standards Group
    Janina> (FSG) janina at freestandards.org http://a11y.org
    Janina> 
    Janina> If Linux can't solve your computing problem, you need
    Janina> a different problem.
    Janina> 
    Janina> _______________________________________________
    Janina> Blinux-list mailing list Blinux-list at redhat.com
    Janina> https://www.redhat.com/mailman/listinfo/blinux-list

-- 
Best Regards,
--raman

      
Email:  raman at users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc




More information about the Blinux-list mailing list