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

Re: [cobalt-users] Shells /bin/badsh



>
> When it starts, the perl script runs, echoing out the message then closes.
> When it exits, it terminates the login connection much like when you type
exit
> or logout in bash or tcsh.
>

1. init spawns getty on tty
2. getty displays login on tty
3. getty calls /etc/login
4. User enters login /password
5. Login starts user's shell
6. /etc/profile or
   /etc/cshrc
7. .profile or
     .login
8. ksjrc or
    .cshrc

I am assuming that it reads the /etc/password which sets up the shell
(/bin/badsh)
Then the shell some how executes a perl scipt  that terminates the tty with
an exit code 1.
Just want to make sure I understand what cobalt has done.
-Danny