Set UID no longer supported on mount.cifs
jbk
jbk-SkCWf5sxpj0sV2N9l4h3zg at public.gmane.org
Sat Feb 6 18:42:47 EST 2010
Bill Bogstad wrote:
> 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:
>
And given that I know squat about C programming it will remain untested
by me. I can do a passable job at a bash script. I will get started on
re-writing the script to use sudo.
Jim KR
More information about the Discuss
mailing list