关于SUID的用法
我作了一个简单的试验,想验证SUID的用法:
%ls -l test
rwxr-xr-x 1 tom staff test
其中test的源程序是:
int main(int argc, char** argv)
{
printf("Effective User ID: %d", geteuid());
return 0;
}
%chmod u+s test
%ls -l test
rwsr-xr-x 1 tom staff test
%id
1001
%test
Effective User ID: 1001
%su -l john
john%test
ld.so.1: test: fatal: libstdc++.so.5: open failed: No such file or directory!
但是libstdc++.so.5文件存在,并且在LD_LIBRARY_PATH路径中。
为什么别的用户不能执行这个程序呢?是不是solaris8有什么安全方面的限制?
...全文


其他技术讨论专区
