在root 用户去执行其他用户的脚本

/usr/bin/su xiaowei -l -c "whoami"

posted @ 2017-11-13 23:41  littlevigra  阅读(775)  评论(0)    收藏  举报