-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathssh-useradd-options.sh
56 lines (55 loc) · 1.76 KB
/
ssh-useradd-options.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
echo " ************ "
# Show Options
PS3='Please select your choice: '
options=("Create User" "Extend User" "Delete User" "Status User" "List User" "Update Script" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Create User")
# Run Create user script
sh /root/ssh-useradd-options/individual-actions-users/create-user.sh
;;
"Extend User")
# Run Extend user script
sh /root/ssh-useradd-options/individual-actions-users/extended-user.sh
;;
"Delete User")
# Run Delete user script
sh /root/ssh-useradd-options/individual-actions-users/delete-user.sh
;;
"Status User")
# Run Status user script
sh /root/ssh-useradd-options/individual-actions-users/status-user.sh
;;
"List User")
# Run List user script
sh /root/ssh-useradd-options/individual-actions-users/list-user.sh
;;
"Online User")
# Run Online user script
sh /root/ssh-useradd-options/online-user.sh
;;
"Network Interface")
# Run Network Interface script
sh /root/ssh-useradd-options/network_interface.sh
;;
"Network Bandwidth")
# Run Network Bandwidth script
sh /root/ssh-useradd-options/network_bandwidth.sh
;;
"Update Script")
# Run Update script
sh /root/ssh-useradd-options/update-script.sh
;;
"Uninstall Script")
# Run Uninstall script
sh /root/ssh-useradd-options/uninstall-script.sh
;;
"Quit")
break
;;
*) echo "Invalid option $REPLY";;
esac
done
echo " ************ "