Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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?

Thanks

share|improve this question

1 Answer 1

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

Your Answer

 
discard

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.