View previous topic :: View next topic |
Author |
Message |
bilbravo Guru
Joined: 30 May 2003 Posts: 319 Location: Baltimore, MD
|
Posted: Wed Apr 14, 2004 3:18 am Post subject: mounting devices - but can't use them |
|
|
i've had this problem for a while, and i finally want to clear it up.
i recently added my zip drive to device i use in linux, and i can mount it and use it while logged in as root
if i su and mount it, i can use it as long as i'm root, however... if i say, click on the icon in kde, it says access is denied.... my cdrw drive also does this from tiem to time....
how do i fix this problem? _________________ me |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Wed Apr 14, 2004 3:24 am Post subject: |
|
|
You need to edit /etc/fstab and add a line that describes each item along with the option users and noauto |
|
Back to top |
|
|
bilbravo Guru
Joined: 30 May 2003 Posts: 319 Location: Baltimore, MD
|
Posted: Fri Apr 16, 2004 5:41 pm Post subject: |
|
|
is it possible to make these devices mountable by users other than roott?
i don't want to have to load konsole, su, then mount my zip drive everytime i want to user it or put in a new disk _________________ me |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Fri Apr 16, 2004 9:31 pm Post subject: |
|
|
If you've added the lines I mentioned then non-root users should be able to mount the drive. man mount has more detailed information. |
|
Back to top |
|
|
rwfranz n00b
Joined: 09 Feb 2004 Posts: 14
|
Posted: Tue Apr 20, 2004 8:38 pm Post subject: mounting issues |
|
|
teknomage1 wrote: | If you've added the lines I mentioned then non-root users should be able to mount the drive. man mount has more detailed information. |
I have the same problem.
If I add, say, the following line to fstab:
/dev/sda1 /usb vfat users,noauto 0 0
As root, I can do "mount /usb" and it will mount the thing correctly. Didn't have a bit of trouble mounting the USB hard drive.
But if I try it as a user, it complains that "only root can do that" or "only superuser can run mount" (depending on what exactly I tried to do).
I have the permissions set wide open on /usb (I will close that a bit just as soon as I figure out how to mount /dev/sda1 as user). I've tried setting the suid bit for /bin/mount; I tried chmod and chown on /bin/mount - and nothing works.
I know I've solved this issue before - in Debian, some years back, but I cannot for anything remember how I did it. I may have run supermount, I don't recall. Any advice would be helpful.
= = = = =
Okay, I found this thread in the forums, it may help:
https://forums.gentoo.org/viewtopic.php?t=161844
Appending "umask=0000" at least lets me read them and write to them once the filesystems are mounted. But I still cannot mount them as user. Again, clues are appreciated.
rwfranz _________________ Live large. |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Tue Apr 20, 2004 8:55 pm Post subject: |
|
|
Code: | -rws--x--x 1 root root 94904 Jan 11 01:13 /bin/mount
drwxr-xr-x 2 root root 4096 Apr 20 16:45 /mnt/fat
/dev/hda6 /mnt/fat vfat noatime,noauto,users 0 0
|
here are my permissions for mount and my mount point, and my entry in fstab. I have no problems running "mount /mnt/fat" but if i try for example "mount -t vfat /dev/hda6 /mnt/fat" I get the "only root can do that" message. Aside from that I'm not sure what to say |
|
Back to top |
|
|
|