View previous topic :: View next topic |
Author |
Message |
R!tman Veteran
Joined: 18 Dec 2003 Posts: 1303 Location: Zurich, Switzerland
|
Posted: Tue Sep 28, 2004 1:20 pm Post subject: cannot mount CD and floppy as normal usser |
|
|
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 |
|
|
dhalsiim Guru
Joined: 29 Jan 2003 Posts: 486
|
Posted: Tue Sep 28, 2004 2:10 pm Post subject: |
|
|
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 |
|
|
R!tman Veteran
Joined: 18 Dec 2003 Posts: 1303 Location: Zurich, Switzerland
|
Posted: Tue Sep 28, 2004 4:28 pm Post subject: |
|
|
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 |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1630 Location: U.S.A.
|
Posted: Thu Sep 30, 2004 4:26 am Post subject: |
|
|
'user' in fstab should be 'users' _________________ Support bacteria – they’re the only culture some people have.”
– Steven Wright |
|
Back to top |
|
|
R!tman Veteran
Joined: 18 Dec 2003 Posts: 1303 Location: Zurich, Switzerland
|
Posted: Thu Sep 30, 2004 8:54 pm Post subject: |
|
|
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 |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1630 Location: U.S.A.
|
Posted: Thu Sep 30, 2004 9:33 pm Post subject: |
|
|
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 |
|
|
Strupniveral n00b
Joined: 09 Apr 2004 Posts: 42
|
Posted: Sun Oct 10, 2004 4:13 pm Post subject: |
|
|
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 |
|
|
AgentMascan n00b
Joined: 04 May 2004 Posts: 29 Location: Idaho, USA
|
Posted: Thu Dec 02, 2004 11:37 am Post subject: |
|
|
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 |
|
|
|