I have pure-ftpd
running on my server and I want to change just the username for some of my virtual-users
. Is this possible?
I've looked in the documentation and the man page for pure-pw
and it doesn't seem to be mentioned. I also tried Google but nothing came up that was related.
If so will the passwords and other settings remain the same? Or do I need to set those up again?
Best Answer
I ended up working this out myself and thought I'd share the steps below...
If you're using the
pureftp.passwd
file to manage your virtual-users then follow these steps:Backup
pureftp.passwd
first before making any changes. Mine was in/etc/pure-ftpd/
.Open the
pureftp.passwd
file with your favourite editor e.g.nano
orvi
.The beginning should be similar to this:
Edit the usernames and save the file.
Next you need to rebuild the pure-ftpd user database:
Test the changes.