Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
alex
n00b
n00b


Joined: 20 Jun 2002
Posts: 36
Location: Netherlands

PostPosted: Thu Jul 04, 2002 9:14 pm    Post subject: Mounting question Reply with quote

Hi,

I have some trouble to give users the right to mount the floppy / cdrom device. I added the "users" option to the "fstab" but with no effect.
Mounting as root works fine, but mounting as a users results in a message saying that only the user must have superuser rights to use mount.

Any suggestions are welcome,

Alex
Back to top
View user's profile Send private message
headly
n00b
n00b


Joined: 21 Jun 2002
Posts: 46

PostPosted: Thu Jul 04, 2002 9:44 pm    Post subject: pleease Reply with quote

a copy of the fstab would help
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Thu Jul 04, 2002 9:45 pm    Post subject: Reply with quote

It should be "user", not "users".
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
alex
n00b
n00b


Joined: 20 Jun 2002
Posts: 36
Location: Netherlands

PostPosted: Fri Jul 05, 2002 8:05 am    Post subject: Reply with quote

OK,

here is the floppy / cdrom related part of my fstab:
Code:
/dev/cdroms/cdrom0   /mnt/cdrom   iso9660      users,ro,noauto      0 0
/dev/floppy/0       /mnt/floppy   vfat      users,noauto      0 0


and for those of you who didn't read the man pages a little quote from the mount man page:
Quote:
user Allow an ordinary user to mount the file system. The name of the mounting user is written to mtab
so that he can unmount the file system again. This option implies the options noexec, nosuid, and
nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid).

users Allow every user to mount and unmount the file system. This option implies the options noexec,
nosuid, and nodev (unless overridden by subsequent options, as in the option line
users,exec,dev,suid).

However I also tried the user option without success. I also added the user to the groups floppy and cdrom (without luck).
The last thing I tried was adding the s-bit to the mount rights. That indeed worked, but I'm not sure if that is a safe solution.

Alex
Back to top
View user's profile Send private message
kybber
Apprentice
Apprentice


Joined: 25 Jun 2002
Posts: 228
Location: Trondheim, Norway

PostPosted: Fri Jul 05, 2002 9:14 am    Post subject: Reply with quote

The following settings in fstab allow my user to mount both cdrom and floppy. The user is not a member of the floppy or cdrom groups.

Code:

/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,user,ro          0 0
/dev/floppy/0           /mnt/floppy     vfat            noauto,user             0 0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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