[ltp] auto modloading as nonroot

Carl Nygard linux-thinkpad@linux-thinkpad.org
29 Oct 2003 08:30:55 -0500


I had a similar problem, but "chmod a+rw /dev/scd0" solved all problems.

Don't know why the permissions are set that way, my desktop RH9 system
links cdrom to /dev/hdd, but /dev/hdd is owned by me, and I'm not sure
how that happened.  Possibly I did that myself in the dim past.

On Wed, 2003-10-29 at 06:21, André Wyrwa wrote:
> Hi,
> 
> I have some problem with my automatic modules loading when I try to
> mount some drives.
> 
> When I try to mount my cdrw as non-root user I get "mount: /dev/cdrom is
> not a valid block device", obviously the modules don't get autoloaded.
> 
> So I switch to root, mount and umount the
> drive, switch back to the user and now can
> mount the drive as non-root as well.
> 
> I guess this isn't normal? Shouldn't the
> modules get loaded as non-root also?
> 
> As an example there is my cdrw drive:
> 
> I'm using scsi emulation, so I have the following entries in
> /etc/modules.conf:
> 
> alias scsi_hostadapter ide-scsi
> alias scd0 sr_mod
> pre-install sg modprobe ide-scsi
> pre-install sr_mod modprobe ide-scsi
> pre-install ide-scsi modprobe scsi_mod
> 
> According fstab entry is:
> 
> /dev/cdrom	/cdrom		auto   \
> ro,users,noauto,unhide  0    0
> 
> /dev/cdrom links to /dev/scd0 and this has
> permissions brw-rw---- and is owned by
> root.disk.
> 
> My nonroot account is member of the disk group.
> 
> André.
-- 
Carl Nygard <cjnygard@fast.net>