> From: Linda Walsh <lkml@xxxxxxxxx> > > Steven Stewart-Gallus wrote: > >> Seriously... What capabilities does mount need in order to function? > >> > > > > I can help out with this one. > > > ---- > awesome... but, um... was hoping the author of mount could > tell me what caps I needed to enable to use his program > w/a non-root user... ;-)... oh well... um...now as to when we > can get a version that doesn't check for UID & EUID==0? > > well... maybe in the works? I believe there's a complication... I'm no expert, but I vaguely recall from some previous thread that there are situations where 'mount' isn't purely a front-end for the kernel mount() call. Instead, 'mount' wants to set up some things and then call mount(). The example that comes to mind is setting up a file on a loopback device, then mounting the loopback device. But I think there were other situations like this. The problem being, that 'mount' wants to verify that the mount() call will succeed *first* before attempting the set-up operations. And some of the setup operations require root capabilities. There's also the complication of the "users" and "user=" options, which are to permit a user to do something he doesn't actually have the capabilities for. Dale -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html