#!/bin/bash
sleep 1
mkdir -p /ceshi/
userdel ceshi
useradd -d /ceshi -s /sbin/nologin ceshi
echo mima | passwd ceshi --stdin
chown -R ceshi:ceshi /ceshi
killall proftpd
sleep 1
service proftpd start
查看用户文件:/etc/passwd
#!/bin/bash
sleep 1
mkdir -p /ceshi/
userdel ceshi
useradd -d /ceshi -s /sbin/nologin ceshi
echo mima | passwd ceshi --stdin
chown -R ceshi:ceshi /ceshi
killall proftpd
sleep 1
service proftpd start
查看用户文件:/etc/passwd