LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   telnet home directory (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-home-directory-816588/)

sachin gupta 06-27-2010 03:05 AM

telnet home directory
 
hi,
i want to change home directory of telnet users.please give reply as soon as possible.

sachin gupta 06-27-2010 03:08 AM

hi,
i have a configure telnet server.but i dont want to give home directory to the users which he login.i want to change home directory of telnet users.
thanking you

Dinithion 06-27-2010 04:42 AM

I'm not sure I quite understand. You have some users that log on locally, and the same users can log on remotely using telnet. And you want them to have different home directories depending on where they log on from?
Why do you want to do this? I'm not asking because it is a dumb question, but I'm trying to figure out what you want to achieve.

(Anyway, you should not use telnet unless you absolutely have to. Use ssh, it is much more secure).

schneidz 06-27-2010 04:43 PM

i would set $HOME to something else in the users .profile (or .bash_profile)

TB0ne 06-27-2010 05:36 PM

Quote:

Originally Posted by sachin gupta (Post 4016124)
hi,
i want to change home directory of telnet users.please give reply as soon as possible.

We volunteer our time here to answer questions. Do NOT come here and tell us to hurry up.

Want to change the home directory? Then you have to change the login home directory, with the "passwd -d <path/to/new/home/directory>" command. When you log in, you automatically go to your HOME directory.

You *CAN* modify the default, system-wide profile, to see if someone is logging in via network, then point them elsewhere, but that's a tricky thing to do. Also, telnet is VERY unsafe, and not used much anymore, for good reason. If you use SSH, you have chroot options available to you.


All times are GMT -5. The time now is 02:52 PM.