Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot mount CD and floppy as normal usser
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
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Tue Sep 28, 2004 1:20 pm    Post subject: cannot mount CD and floppy as normal usser Reply with quote

Hi all,

this might sound like a really nOObish question, but I d o not know why I cannot mount my CD and floppy drive. I worked somewhen ...

Code:
$ mount /mnt/floppy/
mount: must be superuser to use mount

I have no problem as root.

I have this in my fstab:
Code:
/dev/cdroms/cdrom0      /mnt/cdrom      auto            noauto,ro,user          0 0
/dev/fd0                /mnt/floppy     vfat            noauto,user,rw          0 0

Does anyone know why I cannot mount these?

Maybe this helps too:
Code:
 ls -la /mnt/*
/mnt/cdrom:
total 1
drwxr-xr-x  2 root root 2 Sep 28 12:43 .
drwxr-xr-x  5 root root 6 Sep  1 22:35 ..

/mnt/floppy:
total 1
drwxr-xr-x  2 root root 2 Sep 28 12:43 .
drwxr-xr-x  5 root root 6 Sep  1 22:35 ..


Thanks in advance, R!tman
Back to top
View user's profile Send private message
dhalsiim
Guru
Guru


Joined: 29 Jan 2003
Posts: 486

PostPosted: Tue Sep 28, 2004 2:10 pm    Post subject: Reply with quote

Well it's not a problem with your fstab file. It's just that "ordinary" users cannot mount stuff. You will have to setuid root, your "mount" program. And people say it's a security risk.

So from how I see it, you have a couple of choices. You can either install "sudo" and configure it so that you could do "sudo mount /mnt/floppy" and things will work out.

Or use something like ivman, supermount, submount, or a combination of "HAL, dBUS, gnome-volume-manager". These mount your cdroms, floppy drives, usb disks automatically upon insertion. supermount and submount are not favored, and HAL,dBUS is kind of tricky to setup for now since it's still new. So you have ivman, and there are a lot of threads discussing how to use ivman in here.

The way I do it is use sudo.
Have fun ^^
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Tue Sep 28, 2004 4:28 pm    Post subject: Reply with quote

You are right, my permissions for the mount command have changed. They were not 4755 as default.

I think that happened when I switched to reiser4. Damn, I hope not the whole system is borked...

But I did not notice anything else so far.
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1630
Location: U.S.A.

PostPosted: Thu Sep 30, 2004 4:26 am    Post subject: Reply with quote

'user' in fstab should be 'users'
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Thu Sep 30, 2004 8:54 pm    Post subject: Reply with quote

I have tried both, user and users, before changing the mount command to 4755. None worked. I am happy with user now :-).
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1630
Location: U.S.A.

PostPosted: Thu Sep 30, 2004 9:33 pm    Post subject: Reply with quote

Believe it is suppose to be what is in /etc/groups.
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
Strupniveral
n00b
n00b


Joined: 09 Apr 2004
Posts: 42

PostPosted: Sun Oct 10, 2004 4:13 pm    Post subject: Reply with quote

I added to fstab "users" to each cdrom, fd and removable usb drive, then added my user to "users" groups and everything was ok...
Back to top
View user's profile Send private message
AgentMascan
n00b
n00b


Joined: 04 May 2004
Posts: 29
Location: Idaho, USA

PostPosted: Thu Dec 02, 2004 11:37 am    Post subject: Reply with quote

Taken directly from the mount man pages
Quote:
If any user should be able to unmount, then use users instead of user in the fstab line.

This also seems to apply to mounting and is not exclusive to unmounting. Hope this clears things up for someone.
_________________
Day 6 and my Skittles are still nowhere to be found. I fear for tommorrow, for I shall not be able to taste the rainbow.
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