LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Move FTP Accounts (https://www.linuxquestions.org/questions/linux-server-73/move-ftp-accounts-560128/)

L1nuxbug 06-08-2007 01:35 AM

Move FTP Accounts
 
Hi Guys,

I have recently added another SATA hard drive to my Linux box, i am running vsftp on my server and i want to shift all the accounts (folders) from /home to my new added Hard Drive which is /FTP. So any Help??
and
if i want to adduser (new) how can i specify the path noth the orignal one (/home) i want it to create its folder in /FTP partition....

Thanks in advance..

trickykid 06-08-2007 05:46 AM

You can always symlink it but if you have other users with more than FTP access, you're probably just better off editing the FTP users by editing your /etc/passwd file to point them to their new location, /ftp/<username> or however you have it setup.

Schedule a downtime (stopping vsftpd), move the home user folders you need to move, edit their default /home directory to new location in /etc/passwd, you're done.


All times are GMT -5. The time now is 06:29 PM.