shell中使用sudo不输入密码
psufnxk2000
2015-04-13 22:35:51
MySQL
原创
shell中使用sudo不输入密码
[
mysql@localhost
~]$ cat aa.sh
#!/bin/bash
echo "password"
| sudo
-S
cat /var/log/messages
mysql关闭过程
奇怪的现象