Re: linux and users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, TV. It's useful to know this.

What I like about the su command in inittab, is that I can set up my
various consoles in the way I've come to like them setup. My thought is
to just put vlock in /etc/rc.local, so it will all still be somewhat
password protected, but I'll only need to enter root's password once,
and all configurations will be up and ready to go.

This makes a lot of sense ot me with my laptop, primarily. The
office/home desktops aren't such an issue because they're always
sporting great uptimes. But the laptop is shutdown quite a lot when I'm
on the road, so having autologin seems like a nice benefit.

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@xxxxxxxxxxx> 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@xxxxxxxxxx
>     Janina> https://www.redhat.com/mailman/listinfo/blinux-list
> 
> -- 
> Best Regards,
> --raman
> 
>       
> Email:  raman@xxxxxxxxxxxx
> WWW:    http://emacspeak.sf.net/raman/
> AIM:    emacspeak
> PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
> 
> _______________________________________________
> 
> Blinux-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/blinux-list

-- 

Janina Sajka				Phone: +1.202.494.7040
Partner, Capital Accessibility LLC	http://www.CapitalAccessibility.Com

Chair, Accessibility Workgroup		Free Standards Group (FSG)
janina@xxxxxxxxxxxxxxxxx		http://a11y.org

If Linux can't solve your computing problem, you need a different problem.

_______________________________________________

Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]