using mount from SUID scripts?

From: Matthew Dharm (mdharm-kernel@one-eyed-alien.net)
Date: Tue Aug 07 2001 - 18:29:39 EST


I've got an SUID perl script (yes, it's EUID is really 0) which I'd like to
use mount from to mount a file via loopback...

Unfortunately, it looks like mount refuses to actually mount anything if
the EUID and UID aren't the same....

Does anyone happen to know a way around this? Yes, I know this isn't the
most secure thing in the world... but I'm basically trying to build a
filesystem image and put stuff on it using dd, mkfs, mount, and cp. It all
works great when run as root, but it really needs to be useable as a
typical user.

Matt

-- 
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.net 
Maintainer, Linux USB Mass Storage Driver

It was a new hope. -- Dust Puppy User Friendly, 12/25/1998


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 07 2001 - 21:00:49 EST