- #!/usr/bin/ksh
- NEW_USERS="./users_data"
- HOME_BASE="/home/"
- cat ${NEW_USERS} | \
- while read USER PASSWORD
- do
- pass=$(perl -e 'print crypt($ARGV[0], "password")' ${PASSWORD})
- useradd -p $pass -m -d ${HOME_BASE}${USER} ${USER}
- done
SHARE
TWEET
Untitled
a guest
Feb 28th, 2015
177
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
