Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Set UID no longer supported on mount.cifs



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






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org