Created
October 6, 2012 11:26
-
-
Save ecylmz/3844675 to your computer and use it in GitHub Desktop.
Lab/19 Kullanıcıları Oluşturma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Öntanımlı kabuğu değiştir | |
useradd -Ds /bin/bash | |
for isim in `cat talebe.csv`; do | |
useradd -d /home/$isim -p `mkpasswd 123456` $isim | |
mkdir /home/$isim | |
chown -R $isim:$isim /home/$isim | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment