Ubuntu 14.04 执行指定用户的命令 #!/bin/bashsudo -u username /home/sco/start_server.sh 或者 #!/bin/bashsu - username -c /etc/init.d/xxx.sh