View previous topic :: View next topic |
Author |
Message |
rajl Apprentice
Joined: 25 Sep 2002 Posts: 287
|
Posted: Mon Mar 31, 2003 5:21 pm Post subject: mount command refuses to work as user |
|
|
I'm about fed up with mounting my cdroms and dvd's. I have /etc/fstab setup to allow regular users to mount my cdrom and dvd drives, and have double and triple checked to make sure my users are in the cdrom and cdrw groups, but still whenever I issue the command:
Code: |
user@lyon userhome$ mount /dev/sr0 /mnt/dvd
|
I get the following error message:
Code: |
mount: only root can do that
|
Does anyone know how I can fix this problem?
Note that I have both drives setup through scsi emulation since they are both burners. Also, the fstab entries for the two drives look like this:
Code: |
/dev/sr0 /mnt/dvd autofs noauto,ro,user 0 0
/dev/sr1 /mnt/cdrom autofs noauto,ro,user 0 0
|
I would really appreciate your help in this matter, as I really need to have regular users be able to mount drives on their own. _________________ -Rajl
-----------------------------------------------------------
It's easy to be brave once you consider the alternatives. |
|
Back to top |
|
|
kha n00b
Joined: 19 Mar 2003 Posts: 41
|
Posted: Mon Mar 31, 2003 5:29 pm Post subject: |
|
|
As a user you can't choose what device you are going to attach to a mount point.
The command in your case will be mount /mnt/dvd and not mount /dev/sr0 /mnt/dvd.
Specifying the device is something only root can do.
Kha _________________ Digital is perfect, but humans keeps on being analogic.
Viagra Is A Great Reccursive Acronym (can't use it though :( ) |
|
Back to top |
|
|
petardi Tux's lil' helper
Joined: 29 Mar 2003 Posts: 79 Location: SI
|
Posted: Mon Mar 31, 2003 5:55 pm Post subject: |
|
|
Use users instead of user in your fstab lines. |
|
Back to top |
|
|
rajl Apprentice
Joined: 25 Sep 2002 Posts: 287
|
Posted: Tue Apr 01, 2003 3:08 am Post subject: |
|
|
thanks for the help....you solved all my problems... _________________ -Rajl
-----------------------------------------------------------
It's easy to be brave once you consider the alternatives. |
|
Back to top |
|
|
|