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-04       - By Ross Macintyre

 Back
> Is /mnt/diskonkey owned by root?

Yes, but this doesn't matter. It is owned by root, but when I run
'mount /mnt/diskonkey', it mounts the device, /dev/sdb1 on  /mnt/diskonkey
and /dev/sdb1 is changed to be owned by me, the user.

I have noticed that the device, /dev/sda1 doesn't get changed to be owned
by me for the 2nd pen drive.
So now I have to figure out what changes the ownership of /dev/sdb1 but is
not changing the ownership of /dev/sda1.
Anybody help me here?
(I have a feeling that this is all going to point me at pam-related stuff
which, I must admit, loses me a bit).
An on-going problem in our student lab is users not being able to mount
CDs and floppies cos their ownership of the device is wrong, and my long
held suspicion is that KDE or gnome is responible! I hope this doesn't
prove to be the case for Pen drives too.

Cheers,
Ross
>
> Ross Macintyre wrote:
>
>> 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
>> /dev/sdb1     /mnt/diskonkey          auto    noauto,owner,kudzu  0
>>
>> Any ideas anyone?
>> Also, what process looks for hotplugs?
>>
>> Thanks in advance,
>>
>> Ross
>>
>>
>
> --
> Dr Daniel Graham
> Product Strategy Manager
> Video and Image Coding Specialists
> daniel.graham@(protected)
> http://www.videocoding.com
> Tel : [+44|0] 870 241 4618
>


--
Ross Macintyre (raz@(protected))