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

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



>

Actually in /etc/passwd, there is a field that you specify the shell for each
user.  If you put /bin/badsh in that
field you what happens is when you log in via telnet, that will be your shell
instead of /bin/sh or /bin/tcsh.

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.

I've written many shells in perl that involve doing small administrative tasks
for people who needed to add users or change passwords for customers at the
ISP I used to work at.  They come in quite handy.



> This is why I thougt it was something different. What function does
> /bin/badsh server.
> Does it simply execute the perl script mentioned above ?
>
> badsh:     ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
> linked
>  (uses shared libs), not stripped
>
> adding exit 1 to the users .profile would prevent login access. Thanks for
> tip.
>
> -Danny
>  dcd@xxxxxxxxxxxxxxxxxx
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users