Delete User Not Content

  • eddieb
  • 04/27/10
  • Offline
Posted: Mon, 2012-04-09 17:57

I should have created a "website FTP access user" but instead I created a regular FTP user with home directory pointing to an existing subfolder of public_html. As soon as I realized the mistake I wanted to delete the user, but I was alerted it would also delete (web) files. How do I delete this user WITHOUT deleting the files?

Thanks

-- CentOS 5.8 & Virtualmin 3.90.gpl


When deleting a regular FTP

  • andreychek
  • 01/05/09
  • Online Now
  • Mon, 2012-04-09 22:08

When deleting a regular FTP user, Virtualmin would always remove the associated homedir.

However, you can always change what that homedir is. You could make a new homedir in $HOME/homes/USERNAME, and change the user's homedir to point there.

To change the homedir, go into Edit Users -> USERNAME -> Quota and home directory settings, and you can change the home directory there.

Once you do that, you should be able to safely remove that user.

-Eric


Yes, but when you change the

  • eddieb
  • 04/27/10
  • Offline
  • Tue, 2012-04-10 07:17

Yes, but when you change the homedir it moves all the files to the new homedir. So I have to go in via SSH and manually move the files back to their original path BEFORE deleting the user.

It would be only natural to have an option to NOT delete files when deleting an user.

Thanks!


Good point... I'll talk to

  • andreychek
  • 01/05/09
  • Online Now
  • Fri, 2012-04-13 20:18

Good point... I'll talk to Jamie about all that :-)

-Eric