README shell环境下运行脚本,根据需求选择相应的功能. List \t\t create the userlist 这一步是必须执行的,脚本会识别本地当前目录下的文件 Useradd \t\t useradd the user Passwd \t\t set the password to userlist Del \t\t deleate the user 删除用户之前必须要有需要删除用户的列表文件 Sudoers \t\t set the Sudoers Exit \t\t qui
传入一个网段地址,自动找出本网段内存活的IP地址.2,将存活的IP地址当作密码来创建Linux用户,用户名格式为:你的名字_数字 3,有几个存活IP地址,就自动创建几个用户 4,最后将创建的用户名和密码写入到/tmp目录下的某文件里 (1)找存活的ip (2)将ip去除“.”,生成密码, (3)创建用户,密码 (4)写入Path路径下的文件里(设置两个变量) #!/bin/bash Path=/tmp for ip in 192.168.214.{1..5} do ping -c 1 $ip
#!/bin/bash ######the system first start configuretion #####for install ####copy right by donglei############## #1.配置sysctl mv /etc/sysctl.conf /etc/sysctl.bak echo "############################the new config for sysctl ########### net.ipv4.ip_forw