|

楼主 |
发表于 2004-9-3 17:31:58
|
显示全部楼层
可是普通用户能通国setuid()把程序的有效用户变成root吗?
而且要是我把程序的所有者变成root用户,然后给程序设置上set-user-ID位的话,一运行程序,就会出险如下的错误:
[zd@localhost AutoPoweroff]$ ./AutoPoweroff
(AutoPoweroff:3920): Gtk-WARNING **: This process is currently running setuid or setgid.
This is not a supported use of GTK+. You must create a helper
program instead. For further details, see:
http://www.gtk.org/setuid.html
Refusing to initialize GTK+.
更郁闷的是http://www.gtk.org/setuid.html好像打不开 |
|