Solved Create ftp user using adduser

Hi,

Sorry for the nob question but what would the FreeBSD equivalent to the command bellow be?
Code:
groupadd -g 2001 ftpgroup
useradd -u 2001 -s /bin/false -d /bin/null -c "pureftpd user" -g ftpgroup ftpuser

I am trying to create a pure-ftp server following this howto

I know that useradd become adduser but not sure about the rest of it.
Also can I combine both command in 1 line?

Thank you
 
Hi, I mostly doing it like this:

pw useradd -u 21 -n ftp -c "Account holder for Pure-FTPd" -g ftp -d /dev/null -s /sbin/nologin -w no

Small update: command above will create unprivileged user for daemon itself - idea here is to separate main account and user accounts. Next you add a user account (with uid >1000) to the system and use it's uid/gid in pure-ftpd.
 
Code:
pw groupadd ftpgroup -g 2001
pw useradd ftpuser -u 2001 -g 2001 -s /usr/sbin/nologin -d /nonexistent -c "PureFTP user"
See pw(8).
 
Back
Top