LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2010, 04:05 AM   #1
sachin gupta
LQ Newbie
 
Registered: Jun 2010
Location: DELHI
Distribution: Open source
Posts: 9

Rep: Reputation: 0
telnet home directory


hi,
i want to change home directory of telnet users.please give reply as soon as possible.
 
Old 06-27-2010, 04:08 AM   #2
sachin gupta
LQ Newbie
 
Registered: Jun 2010
Location: DELHI
Distribution: Open source
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 06-27-2010, 05:42 AM   #3
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
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).
 
0 members found this post helpful.
Old 06-27-2010, 05:43 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
i would set $HOME to something else in the users .profile (or .bash_profile)
 
Old 06-27-2010, 06:36 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by sachin gupta View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Home directory already exists. Please enter another home directory path." Daravon Ubuntu 2 02-15-2009 11:26 PM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 05:02 PM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM
How restrict to home directory in telnet session cuencano Linux - Security 3 06-14-2005 06:01 PM


All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration