关于setuid问题,好象不能生效
我以ROOT身份生成了一个test_root.sh文件,并且
chmod 4700 test_root.sh 赋予了setuid权限,但当我又其它用户来执行这个文件时,仍然不行,请看下面的输出。
(SSC-ESE180) /export/home/tomtan/shell (35430)$ ls -l test_root.sh
-rws------ 1 root other 21 Apr 1 16:45 test_root.sh
(SSC-ESE180) /export/home/tomtan/shell (35433)$ test_root.sh
ksh: test_root.sh: cannot execute
请问是怎么回事?