Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- DHCP
- crontab
- Redistribute
- 장비
- GLBP
- ripng
- ospfv3
- OSI 7 layer
- tunneling
- stp
- NAT
- ACL
- eigrp
- rip
- CKA
- eigrpv2
- Vlan
- Inter VLAN
- 명령어
- OSPF
- 스위치
- 라우터
- Chrony
- ipv6
- 헤더
- Etherchannel
- vrrp
Archives
- Today
- Total
Net Eng
useradd.sh 본문
#!/bin/bash
USERLIST=user.list
cat $USERLIST | while read UNAME UPASS
do
useradd $UNAME > /dev/null 2>&1 \
&& echo "[ OK ] $UNAME added." \
|| echo "[ FAIL ] $UNAME not added"
echo $UPASS | passwd --stdin $UNAME > /dev/null 2>&1 \
&& echo "[ OK ] $UNAME password changed." \
|| echo "[ FAIL ] $UNAME password not changed"
done
'Language > Shell Script' 카테고리의 다른 글
auto_telnet_ftp.sh (0) | 2024.06.08 |
---|---|
check_file.sh (0) | 2024.06.08 |
auto_reboot.sh (0) | 2024.06.08 |
user_admin.sh (0) | 2024.06.08 |
userdel.sh (0) | 2024.06.08 |