hi look at my new script
you can add new users by using this
you can add new users by using this
كود:
#!/bin/bash #dj.r4iden at gmail dot com # gr8 2o StrikerX # you can add new user to your linux box # under MIT License #http://www.opensource.org/licenses/mit-license.php #linuxAC.org echo "plz enter name?" read X1 X1=$X1 echo "plz enter the UID?" # start from here read X2 X2=$X2 echo "plz enter the comment?" read X3 X3=$X3 mkdir /home/$X1 echo "plz enter your shell type ?" echo "like /bin/bash" read X4 X4=$X4 echo "$X1:x:$X2:$X2:$X3:/home/$X1:$X4" >> /etc/passwd echo "$X1::$X2" >> /etc/group chown $X1 /home/$X1 chgrp $X1 /home/$X1 passwd $X1 $0
تعليق