![]() |
Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
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