Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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:

  1. Backup pureftp.passwd first before making any changes. Mine was in /etc/pure-ftpd/.

    $ cd /etc/pure-ftpd/
    $ cp pureftp.passwd pureftp_backup.passwd

  2. Open the pureftp.passwd file with your favourite editor e.g. nano or vi.

    $ nano pureftp.passwd

    The beginning should be similar to this:

    username1:@!#*HKnkasd ...
    username2:G(*asHJKY#$ ...

  3. Edit the usernames and save the file.

  4. Next you need to rebuild the pure-ftpd user database:

    $ pure-pw mkdb

  5. Test the changes.

NOTE: Note you might need to prepend 'sudo' to the commands depending on your user access. Also you do not type the '$' sign in the above commands. It's purely indicative of your shell prompt.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.