root su执行普通账号权限脚本

在root 账号下,通过su执行普通账号权限脚本。

具体参数如下:

 /bin/su --shell=/bin/bash -c "/path/check_chukwaagent.sh" hadoop 

原文地址:https://www.cnblogs.com/devops/p/3038984.html