Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount command refuses to work as user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Mon Mar 31, 2003 5:21 pm    Post subject: mount command refuses to work as user Reply with quote

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
View user's profile Send private message
kha
n00b
n00b


Joined: 19 Mar 2003
Posts: 41

PostPosted: Mon Mar 31, 2003 5:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
petardi
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2003
Posts: 79
Location: SI

PostPosted: Mon Mar 31, 2003 5:55 pm    Post subject: Reply with quote

Use users instead of user in your fstab lines.
Back to top
View user's profile Send private message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Tue Apr 01, 2003 3:08 am    Post subject: Reply with quote

thanks for the help....you solved all my problems...
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum