Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
telnet exiting
Name: xsu Date: August 6, 2002 at 09:38:30 Pacific
Comment:
hey everyone.
i have been set a task on a friends system, the task requires me to stop the telnet session ending once i have logged in with the username and password i have been given.
what happens is this: i telnet to the address, login with the username and password, but then the session ends and the telnet window closes.
i have shell access to this machine to change any settings etcetera, that is the whole idea, its a challenge to see if i can stop it exiting.
i was wondering if anyone might know where on the system i should start looking to fix this problem.
Name: Josh Date: August 6, 2002 at 14:56:49 Pacific
Reply:
There are a few things this could be.
1. You are trying to log in as a "0" user, or a root equivalent - and PAM or some other security is preventing you from logging in anywhere but on the console. Make sure your user or group number in /etc/passwd is not "0".
2. And most likely, you don't have a home directory, or you don't have read/write access to the home directory in /etc/passwd. Also, make sure the shell in the /etc/passwd line exists as well.
If you have access to the console, you can always "su" as that user and more details will be given, or check /var/log/syslog for more info on what's going on.
0
Response Number 2
Name: dfx Date: August 6, 2002 at 22:33:23 Pacific
Reply:
Make your telnet window NOT close when the connection dies, there may be an error message that you don't see.
Summary: you could add something like: if [ connection != telnet ]; then echo "you can only login via telnet!" exit 1 fi to he users .bash_login file of course this is only a meta script (not working) ...
Summary: Sorry for double-post - subject got clipped! I'm tring to move an old SCO multi-user database on to RedHat7.2. I can start the db server OK and can start multiple user sessions from the console, but c...
Summary: I'm tring to move an old SCO multi-user database on to RedHat7.2. I can start the db server OK and can start multiple user sessions from the console, but can't start a db session as a telnet user. Tel...