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

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

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