LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Create a login script? (https://www.linuxquestions.org/questions/%2Absd-17/create-a-login-script-211483/)

jedimastermopar 07-30-2004 10:50 AM

Create a login script?
 
I want to have a user setup on this bsd box I am building so that when a certain user logs in that user automacilly telnets into another server via a script. This machine is going to be replacing a Dumb terminal and I want it to look as seamless as possible.

jedimastermopar 07-30-2004 11:10 AM

Ok so I think I have to edit the file .login for that user and put the commands in there, could someone post me some syntax example to open a telnet session? Also is there anything that needs to be done to tell the os to use the .login script or is just its presence enough in the users home directory?

jedimastermopar 07-30-2004 11:23 AM

Ok so I think I have to edit the file .login for that user and put the commands in there, could someone post me some syntax example to open a telnet session? Also is there anything that needs to be done to tell the os to use the .login script or is just its presence enough in the users home directory?

frob23 07-30-2004 11:49 AM

Well, you are going to want to set the user's shell to tcsh (that way you know it will be run). And it won't be seamless... they will be prompted for a password twice.

january 08-02-2004 08:07 AM

Maybe you could use perl in the login script to activate a telnet or access DB before telnet. like...........
system "telnet -E 192.9.1.254";


All times are GMT -5. The time now is 05:26 AM.