Full-service Internet Marketing & Web Development
Recent Posts

Sponsors
![]() |
How to create a new user + Password in FreeBSD / RedHatDawn Rossi, 06-09-2009 |
To create a new user programatically, create the user directory and assign password, use this syntax:
/usr/bin/ssh root@REMOTEHOSTNAME echo "PASSWORD" | /usr/sbin/pw useradd USERNAME -d 'PATH' -s /sbin/ftponly -w yes -c comment -h 0
REMOTEHOSTNAME - The remote machine you're creating this user under
PASSWORD - Password to assign to the new user account
USERNAME - User name to login with
PATH - New user directory
/sbin/ftponly - Replace with the full path of the new user shell
/usr/bin/ssh root@REMOTEHOSTNAME echo "PASSWORD" | /usr/sbin/pw useradd USERNAME -d 'PATH' -s /sbin/ftponly -w yes -c comment -h 0
REMOTEHOSTNAME - The remote machine you're creating this user under
PASSWORD - Password to assign to the new user account
USERNAME - User name to login with
PATH - New user directory
/sbin/ftponly - Replace with the full path of the new user shell
|
|
Subscribe Now to receive new posts via Email as soon as they come out.
Comments
Post your comments

