Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to add users to ftp using pure-ftp

I used the following command:

pure-pw useradd test-user -u ftpgroup -d /path/to/my/dir

And I get the following error:

You must give (non-root) uid and gid

Is there anything I can do to get this working?


share|improve this question

2 Answers 2

You need to give a -u uid and -g gid.

pure-pw useradd test-user -u 1234 -g 1234 -d /path/to/my/dir

Obviously use your own numbers...

share|improve this answer
Is 1234 a user? i.e. one that has been created by useradd 1234 and passwd 1234? – terrid25 May 30 '12 at 14:08
No, uid is a numeric ID of the user. And gid is a numeric ID relating to the group. – Sirch May 30 '12 at 14:13

Or find the numbers as explained in this article

To find a user's UID or GID in Unix, use the id command. To find a specific user's UID, at the Unix prompt, enter:

id -u username

Replace username with the appropriate user's username. To find a user's GID, at the Unix prompt, enter:

id -g username

If you wish to find out all the groups a user belongs to, instead enter:

id -G username

If you wish to see the UID and all groups associated with a user, enter id without any options, as follows:

id username
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.