128128# ###############################新增超级管理员用户################################
129129function create_user(){
130130 echo " #########################################################################################"
131- echo -e " \033[1;31m 3、Create eproot account \033[0m"
131+ echo -e " \033[1;31m 3、Create openroot account \033[0m"
132132 echo " #########################################################################################"
133- read -p " Be sure to create an eproot account?[y/n]:"
133+ read -p " Be sure to create an openroot account?[y/n]:"
134134 case $REPLY in
135135 y)
136- grep -i ' eproot ' /etc/passwd
136+ grep -i ' openroot ' /etc/passwd
137137 if [ $? == 0 ]; then
138- echo -e " \033[1;31m An eproot account has been created \033[0m"
138+ echo -e " \033[1;31m An openroot account has been created \033[0m"
139139 else
140140 read -p " Please enter your password:" PASSWD
141- useradd -g root eproot ; echo " $PASSWD " | passwd --stdin eproot > /dev/null
141+ useradd -g root openroot ; echo " $PASSWD " | passwd --stdin openroot > /dev/null
142142 if [ $? == 0 ]; then
143- echo -e " \033[1;31m eproot account created successfully \033[0m"
144- grep -i " eproot " /etc/sudoers
143+ echo -e " \033[1;31m openroot account created successfully \033[0m"
144+ grep -i " openroot " /etc/sudoers
145145 if [ $? != 0 ]; then
146146 chmod u+w /etc/sudoers > /dev/null
147- sed -i ' /^root.*ALL=(ALL).*$/a\eproot ALL=(ALL) NOPASSWD:ALL' /etc/sudoers > /dev/null
147+ sed -i ' /^root.*ALL=(ALL).*$/a\openroot ALL=(ALL) NOPASSWD:ALL' /etc/sudoers > /dev/null
148148 if [ $? == 0 ]; then
149149 echo -e " \033[37;5m [Permissions set success] \033[0m"
150150 else
@@ -155,7 +155,7 @@ function create_user(){
155155 echo -e " \033[1;31m Permissions have already been set \033[0m"
156156 fi
157157 else
158- echo -e " \033[1;31m eproot account created failed \033[0m"
158+ echo -e " \033[1;31m openroot account created failed \033[0m"
159159 exit 1
160160 fi
161161 fi
@@ -354,7 +354,7 @@ function main(){
354354# Menu #
355355# 1:ALL protective #
356356# 2:Set Password Complexity Requirements #
357- # 3:Create eproot account #
357+ # 3:Create openroot account #
358358# 4:Set Remote Login Configuration(SSH) #
359359# 5:Set Shell History and TMOUT #
360360# 6:Set SSH Port #
0 commit comments