Created
July 7, 2010 12:25
-
-
Save alkesh/466621 to your computer and use it in GitHub Desktop.
Create user on OEL/CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
username=$1 | |
adduser $username | |
usermod -G wheel $username | |
echo set user password: | |
passwd $username | |
chage -d 0 $username |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment