您的位置:首页 > 其它

非root account执行root 权限功能 实现方案

2017-08-23 18:02 225 查看

1 build  account 执行脚本1.sh

2  1.sh call root account build_rmx1000

-rwsr-xr-x 1 root root 100979 2009-08-17 11:45 /usr/rmx1000/bin/build_rmx1000

3 code :

 setuid(0); setguid(0);

u+s是亮点,可以在code中由普通account改成root account。

如果是rwx,不能改成root.

cool和rmx build都是采用这种方式
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐