Mr O wrote:
That's much more along the lines of what is needed. As I stated
before, I'm avoiding fstab because I plug in multiple devices
and the first USB is always /dev/sdb so I prefer manual control
of the mount point. I have three USB keys, card reader, external
hard drive, and phone that need to be interchangeable on the fly
and/or cope with more than one being plugged in. Thus, fstab is
more hassle in that case. What if /mnt/camera is usually
/dev/sdb1 but I have a key in already mounted at /mnt/usbkey?
/dev/sdc wouldn't autoconfigure to /mnt/camera via fstab.
I think 2.6 kernels have a mechanism to tie specific
devices to specific dev's, independent of the USB insert
order. But I don't know what that mechanism is. What
kernel are you on?
FWIW, this is Gentoo running Fluxbox. Ubuntu on the laptop
handles things fine via all the automount crap.
That be all,
Mr O.
--
Allen Brown [EMAIL PROTECTED] http://www.peak.org/~abrown/
The Puritans hated bear-baiting, not because it gave pain
to the bear, but because it gave pleasure to the spectators.
--- Thomas Macaulay: History of England, I
--- Jacob Meuser <[EMAIL PROTECTED]> wrote:
On Sun, Apr 23, 2006 at 10:41:22AM -0700, Allen Brown wrote:
Mr O wrote:
The trouble is root can do it all. I'm not looking to add
an
entry to fstab unless neccessary. I tend to mount different
devices to different directories. For instance, if only one
device is plugged in it is /dev/sdb. So I may mount it to
/mnt/camera or /mnt/usb. Now, what if I plug in a second
USB
device? Naturally it will be /dev/sdc so I'd mount it
somewhere.
Why are you avoiding /etc/fstab? That seems to me like it
would be the best solution.
The only alternative I can think of is sudo. No wait, there
is another. You could suid /bin/mount to root. I recommend
against this since it would be a security hole.
could be tightened considerably by only allowing a certain
trusted
group (maybe operator?) permission to execute /bin/mount.
this is
how shutdown(8) is set up on OpenBSD:
$ ls -l `which shutdown`
-r-sr-x--- 1 root operator 191824 Apr 3 15:45
/sbin/shutdown
$
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug