LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 08-22-2004, 04:21 PM   #1
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Rep: Reputation: 30
Changing home dir path?


I have a special account which virtual users on my ftp server uses. I have just reorganzied my dir structure a need to change the home dir of this account from "/export" to "/export/ftp1" since I can't seem to chroot this account in any other dir than its homedir.
How to I do this with a simple command so I don't have to delete and recreate the account?

Last edited by NonSumPisces; 08-22-2004 at 04:24 PM.
 
Old 08-22-2004, 04:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
vi /etc/passwd


Cheers,
Tink
 
Old 08-22-2004, 04:28 PM   #3
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Original Poster
Rep: Reputation: 30
Forgot to mention.. In /etc/passwd this account is pointed to /dev/null, but in practise it's chrooted to /export... Any ideas? Or do I need to recreate the account with a new home path?
 
Old 08-22-2004, 04:39 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
What do you mean "it's re-directed to /dev/null"?
Please :}
grep <username> /etc/passwd

This kind of contradicts the your first post, you know...


Cheers,
Tink
 
Old 08-22-2004, 05:16 PM   #5
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Original Poster
Rep: Reputation: 30
I'm real bad at explaining techie stuff in english Never mind though, I solved it, your first post gave me a hint as to how to do it
 
  


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
Jailed Home Dir tdkratboy Linux - Security 10 06-19-2010 08:51 AM
PATH export in etc/profile.local adds dir twice tongar Linux - Newbie 3 06-16-2005 04:56 PM
adding a dir to PATH for root Villain Linux - Newbie 3 06-20-2004 04:49 PM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 08:54 PM
PWD question : Current dir not full path facets Programming 2 06-09-2004 05:58 AM


All times are GMT -5. The time now is 02:14 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