Skip to content

Instantly share code, notes, and snippets.

@alkesh
Created July 7, 2010 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alkesh/466621 to your computer and use it in GitHub Desktop.
Save alkesh/466621 to your computer and use it in GitHub Desktop.
Create user on OEL/CentOS
#!/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