[ltp] auto modloading as nonroot

André Wyrwa linux-thinkpad@linux-thinkpad.org
Wed, 29 Oct 2003 12:21:51 +0100


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é.