关机、修改时间、杀终端: 用vi编辑 /etc/auth/subsystems/root 加入一行[用户名:shutdown,asktime,kill,killall] 同样在/etc/auth/system/authorize中加入上一行; 拷贝/etc/asktime 到 /tcb/files/rootcmds目录下 拷贝/bin/kill 到 /tcb/files/rootcmds目录下 通过上述修改后可在$提示符下执行超级用户的权限 也可用我编辑一个简单shell执行 while true do clear echo " [06;28H" [0m" ? 管理员菜单 " echo " [0...
bash# ls -al test.sh ---------- 1 root admin 0 Sep 1 15:27 test.sh bash# echo ls > test.sh bash# cat test.sh ls bash# sh test.sh test test.sh test1 test2 test3 bash#
普通用户执行sar 的时候出现 sar: The file access permissions do not allow the specified action. 或者Permission Denied 用root执行没有问题
我在使用/tcb/bin/asroot kill -9 $a 时的提示,不知道是怎么回事 asroot:/tcb/files/rootcmds/kill:file control database inconsistency asroot:the system's integrity may be compromised .run integrity
现有一普通用户user1下的脚本a.sh,需要访问系统日志如/var/log/messages,怎么才能做到? 貌似设置s权限可以解决问题,请问如何在root用户里设置s权限?