Changes

Jump to: navigation, search

OPS235 Lab 4 - CentOS7

85 bytes added, 19:37, 10 April 2015
no edit summary
::    useradd -m -c "$(echo $x | cut -d":" -f2 | sed 's/+/ /g')" -p $(date | md5sum | cut -d" " -f1) $(echo $x | cut -d":" -f1)
::&nbsp; &nbsp; mail -s "Server Account Information" $(echo $x | cut -d":" -f3) <<+
::&nbsp; &nbsp; Here is your server account information:::&nbsp; &nbsp; servername: myserver.senecac.on.ca::&nbsp; &nbsp; username: $userName(echo $x | cut -d":" -f1)::&nbsp; &nbsp; password: $userPassword(date | md5sum | cut -d" " -f1)::&nbsp; &nbsp; Regards,::&nbsp; &nbsp; IT Department
::+
::done<br><br>
::echo -e "\n\nAccounts have been created\n\n"
::exit 0
13,420
edits

Navigation menu