Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
Subject: application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
Subject: X Windows problem (xauth)
Subject: Upgrading openoffice 1 1 rpm
Subject: FTP: connection refused
Subject: FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
Subject: broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Subject: Promise 378 controller
Subject: Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Subject: Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
usb pen drives: mounting as a user

usb pen drives: mounting as a user

2003-12-03       - By Ross Macintyre

 Back
Hi.
 I am running redhat 8.0 on a number of lab machines.
(I know I know, I should be running Fedora, but I'm not)
I want to set things up so that students can insert USB pen drives, and
then mount the file system, assuming there is one to mount.
The first pen drive I was given to try works a treat:
 stick it in, it puts an entry in /etc/fstab and the user can run (not as
root) mount /mnt/diskonkey.

The 2nd pen drive doesn't get an entry put in /etc/fstab. So my first
question is what makes the entry? Is it updfstab? Looks like it is because
/etc/updfstab.conf.default contains the entry:
 device diskonkey {
   partition 1
   match   hd diskOnKey
 }

So I edited etc/updfstab.conf.default and added an entry for the other pen
drive:
 device usb_disk {
   partition 1
   match   hd USB
 }
[I guessed this cos of these entries in /var/log/messages:
kernel:   Vendor:           Model: USB DISK 2.0      Rev: 1.16
kernel:   Vendor: M-Sys     Model: DiskOnKey         Rev: 3.04

Now an entry gets put in /etc/fstab ok but only root can mount it, whereas
for the other entry any user can mount it. The entries put in /etc /fstab
are identical apart from the mountpoint and the device:
/dev/sda1     /mnt/usb_disk           auto    noauto,owner,kudzu 0 0
/dev/sdb1     /mnt/diskonkey          auto    noauto,owner,kudzu 0 0

Any ideas anyone?
Also, what process looks for hotplugs?

Thanks in advance,

Ross


--
Ross Macintyre (raz@(protected))