LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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 03:24 PM.
 
Old 08-22-2004, 03:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
vi /etc/passwd


Cheers,
Tink
 
Old 08-22-2004, 03: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, 03:39 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 04: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:44 PM.

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
Open Source Consulting | Domain Registration