Estimado Antonio: No he seguido esta serie de mails a fondo, pero el tema va asi: El kernel levanta y busca el programa init, y si no lo encuentra /bin/sh. init usa el archivo /etc/inittab donde ejecuta el programa gettyy (que lee el nombre de usuario) que a su vez ejecuta el programa login que ejecuta el programa /bin/sh
si a gettty se le da el parametro -n no pregunta el nombre (ejecuta login como root) y si ademas le damos el parametro -l podemos decir que en vez de usar el programa login use otro. OJO!! con -n -l lo que ejecute estara con usuario "root". Para mas informacion man gettty Saludos ivan/zaikxtox > Manel Marin wrote: > > > (non login shells)??? > > > > > > Eso es algo que a mi siempre me costo entender. En principio todas las > > > shells que no las crea el proceso de login, son nologin shells, y se > > > ahorran algunos pasos de inicializacion. > > > > �Alg�n ejemplo? > > �Quieres decir cuando lanzo un script (que tiene su shell) desde un shell? > Exacto. > Veamos, la cadena va asi mas o menos > init > -login > -bash ( es de login lee .bash_profile y pone un entorno ) > -script x ( bash lanza un shell para ejecutarlo que hereda el del > proceso anterior ). > > la forma mas facil de ver el tema es un ps f > > Hay va el monstruo > TTY STAT TIME COMMAND > 1 ? S 0:04 init [2] > 2 ? SW 0:00 (kflushd) > 3 ? SW 0:00 (kupdate) > 4 ? SW 0:00 (kpiod) > 5 ? SW 0:00 (kswapd) > 108 ? S 0:00 /sbin/syslogd > 110 ? S 0:00 /sbin/klogd > 117 ? S 0:00 /usr/sbin/inetd > 125 ? S 0:00 /usr/sbin/gpm -m /dev/psaux -t ps2 -l > "a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377" > 131 ? S 0:00 /usr/sbin/lpd > 136 ? S 0:00 /usr/bin/ud -s > 139 ? S 0:00 /usr/bin/X11/xfs > 115 ? S 0:00 /sbin/portmap > 163 1 S 0:00 -bash > 171 1 S 0:00 \_ xinit /usr/X11R6/lib/X11/xinit/xinitrc -- -auth > /home/ant/.Xauthority > 176 ? S 3:02 \_ X :0 -auth /home/ant/.Xauthority > 180 1 S 0:46 \_ /usr/bin/enlightenment > 201 ? S 0:00 \_ xterm > 202 p0 S 0:00 \_ bash > 210 p0 S 5:20 \_ /usr/lib/netscape/netscape > 222 p0 S 0:00 | \_ (dns helper) > 761 p0 R 0:00 \_ ps fxa > <[EMAIL PROTECTED]> [~]$ > > Como ves ps depende de bash y este a su vez de xterm y este a su vex de > enlightenment y ese de ... > Los shells de login son los que ponen -bash. > Un problema tipico es el cargar las x a traves de xdm sin pasar por > bash, xdm lee el fichero environment > y todo parece funcionar bien hasta que haces un xterm que por defecto > hace un shell no de login que no lee mas que .bashrc y te encuentras que > los mensajes aparecen en ingles. No veas lo que me costo darme cuenta > del problema. Yes... i'm a registered Linux user by counter.li.org... but i have forgotten my number. Anyway who cares? Free science and free software are just two aspects of the same complex reality: long-term human survival. Support humankind, use Linux. ------------------------------------- The following invitation to get a free e-mail account is not from me. If you want a web mail try to find another, cuz this need javascript. If it's possible test it against Lynx or Links browsers. ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1

