Set UID no longer supported on mount.cifs
Bill Bogstad
bogstad-e+AXbWqSrlAAvxtiuMwx3w at public.gmane.org
Sat Feb 6 11:45:40 EST 2010
On Sat, Feb 6, 2010 at 9:12 AM, jbk <jbk-SkCWf5sxpj0sV2N9l4h3zg at public.gmane.org> wrote:
> As the subject line says you can no longer make mount.cifs setuid. The
> change was made last November but the effects did not appear in the
> distributions till January.
>...
>
> Does anyone see another means to maintain the users ability to mount
> their network shares transparently?
I'm not sure why the sudo (with restricted commands) is not an option.
Before the existence of sudo,
I would have written a trivial C program which just exec()ed the real
program and installed it with the setuid bit set. Here is some
UNTESTED code:
main(int argc, char **argv)
{
setuid(0); /* make real uid root as well */
execvp("real program", argv); /* pass arguments through unchanged */
}
Bill Bogstad
More information about the Discuss
mailing list