Linux 下使用指定的用户来执行命令
有时候,我们需要在Linux开机的时候执行一些特定的程序或都脚本,因为涉及到安全主面的问题,所以又不想用root来执行,那怎样办呢。经过查看 su 的帮助提示,发现:[root@RedHat6 ~]# su --helpUsage: su [OPTION]... [-] [USER [ARG]...]Change the effective user id and group id to that of USER. -, -l, --login ...