mounting /dev/cdrom from non-root user?

mounting /dev/cdrom from non-root user?

Post by Alberto BARSELL » Wed, 10 Dec 1997 04:00:00



Hi,
        I'm trying to have some of my users mount and unmount the
cdrom drive, but without success. According to the CDROM howto adding
a fstab line like:

/dev/cdrom  /cdrom  iso9660  ro,user,noexec,nosuid,nodev  0 0

should work, but it doesn't.
Mounting works fine, but when I try to unmount it I get:

umount: /cdrom mount disagrees with the fstab

I have no idea what this means, but I checked in both /mtab and
/proc/mounts the mount options to see any discrepancy and I can't find
any.

Thanx,
Alberto
--
Alberto BARSELLA
PGP fingerprint = 13 3F 22 D2 0B 0A D3 25  F1 89 FE B5 82 AD 75 2A
** Beliefs are dangerous. Beliefs allow the mind to stop functioning.
A non-functioning mind is clinically dead.  Believe in nothing... **

 
 
 

mounting /dev/cdrom from non-root user?

Post by Jürgen Exne » Wed, 10 Dec 1997 04:00:00


Actually this question has been asked several time, probably mount should be
changed.

Problem:
- /dev/cdrom is a symbolic link to the real device.
- During mount the name of the actual device will be entered in /etc/mtab.
- When unmounting the entry in /etc/mtab will be compared with the device in
/etc/fstab.
- The entry for the real device in /etc/mtab is different from the entry
/dev/cdrom in /etc/fstab
Therefore mount refuses to unmount the device.

Solution: Change the device in /etc/fstab from /dev/cdrom to the real device
name, e.g. /dev/scd0 or /dev/hdc

jue

--
Jrgen Exner; jurgenex AT microsoft.com
Sorry for this anti-spam inconvenience


>Hi,
> I'm trying to have some of my users mount and unmount the
>cdrom drive, but without success. According to the CDROM howto adding
>a fstab line like:

>/dev/cdrom  /cdrom  iso9660  ro,user,noexec,nosuid,nodev  0 0

>should work, but it doesn't.
>Mounting works fine, but when I try to unmount it I get:

>umount: /cdrom mount disagrees with the fstab

>I have no idea what this means, but I checked in both /mtab and
>/proc/mounts the mount options to see any discrepancy and I can't find
>any.

>Thanx,
>Alberto
>--
>Alberto BARSELLA
>PGP fingerprint = 13 3F 22 D2 0B 0A D3 25  F1 89 FE B5 82 AD 75 2A
>** Beliefs are dangerous. Beliefs allow the mind to stop functioning.
>A non-functioning mind is clinically dead.  Believe in nothing... **


 
 
 

1. run a non-root user's program from a non-root user

Hi Folks,

Here is the problem.

I have user A and user B (non-root users)

I need for user A to initiate a job as user B. How can this be done?

As you know, I can do this as root. I can start a process from root as
another user in the system (cron jobs come to my mind!) Is there a way
to do this for non-root users? I believe I need to be able to do
something like  as user A
"su - B" without being prompted for password.

Appreciate suggestions in advance.

Pasha

BTW: I am using AIX 4.3.10

2. Is this US Robotics 56k modem supported?

3. mount error: mount only root can mount /dev/cdrom on cdrom

4. g77 support for gcc 2.7.2.3?

5. alarm(3) implementation.

6. Mounting cdrom as non-root user

7. Apache: "Virtual ports"?

8. How to mount a CDROM as a non-root user

9. How to allow non root users to mount floppy/cdrom?

10. Can I set up /dev/floppy to be mounted by non-root?

11. /dev/audio for non-root users

12. non-root mount CDROM