On Tue, Dec 02, 2008 at 05:21:24PM +0800, wk wrote: > > I want write a c program.And a common user(not in root group) will run > this program. > In this program,I call fread(/dev/sdc...) and fwrite(/dev/sdc),but this > call will return "permission no allow".If I use the root user,will be > ok. > How to change to the authority to root's? > I know the root's password. Your best bet is "sudo" or better look at the pairs of tools like: /usr/bin/system-config-bind /usr/sbin/system-config-bind They take advantage of "consolehelper" and the commone case that /usr/sbin is not in the search path of commmon users but /usr/bin is. Note well, From the man page: consolehelper requires that a PAM configuration for every managed pro- gram exist. So to make /sbin/foo or /usr/sbin/foo managed, you need to create a link from /usr/bin/foo to /usr/bin/consolehelper and create the file /etc/pam.d/foo, normally using the pam_console(8) PAM module. -- T o m M i t c h e l l Found me a new hat, now what? -- fedora-selinux-list mailing list fedora-selinux-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-selinux-list