Call us Toll-Free:
1-800-218-1525
Live ChatEmail us

 Sponsors

How to create a new user + Password in FreeBSD / RedHat

Dawn 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
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions