LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing home dir path? (https://www.linuxquestions.org/questions/linux-newbie-8/changing-home-dir-path-220992/)

NonSumPisces 08-22-2004 03:21 PM

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?

Tinkster 08-22-2004 03:23 PM

vi /etc/passwd


Cheers,
Tink

NonSumPisces 08-22-2004 03:28 PM

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?

Tinkster 08-22-2004 03:39 PM

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

NonSumPisces 08-22-2004 04:16 PM

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 :)


All times are GMT -5. The time now is 03:30 PM.