Open main menu

CDOT Wiki β

Changes

OPS235 Lab 4 - CentOS7

14 bytes added, 19:29, 7 March 2016
no edit summary
for x<br>
do<br>
&nbsp; &nbsp; userPassWd=$(date | md5sum | cut -d" " -f1)<br>
&nbsp; &nbsp; useradd -m -c "$(echo $x | cut -d":" -f2 | sed 's/+/ /g')" -p $userPassWd $(echo $x | cut -d":" -f1)<br>
&nbsp; &nbsp; mail -s "Server Account Information" $(echo $x | cut -d":" -f3) <<+<br>
13,420
edits