Tag: users
Creating a New User in CentOS 5
by admin on Jan.25, 2009, under Server Maintenance
Creating a New User in CentOS 5
1. SSH to your server as root
2. Create a user: /usr/sbin/useradd newuser
3. Expire ther user immediately: /usr/bin/chage -d 0 newuser
4. Set blank password: /usr/sbin/usermod -p “” newuser
5. If you want to set the user’s password:
* su newuser
* passwd
Changing password for user newuser
New UNIX password: <enter your password>
Retype new UNIX password: <enter your password>
passwd: all authentication tokens updated successfully.
That’s it! From there on, you have a user that can be used to host your website or blog!