Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mounting devices - but can't use them
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
bilbravo
Guru
Guru


Joined: 30 May 2003
Posts: 319
Location: Baltimore, MD

PostPosted: Wed Apr 14, 2004 3:18 am    Post subject: mounting devices - but can't use them Reply with quote

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


Joined: 05 Aug 2003
Posts: 1239
Location: Los Angeles, CA

PostPosted: Wed Apr 14, 2004 3:24 am    Post subject: Reply with quote

You need to edit /etc/fstab and add a line that describes each item along with the option users and noauto
Back to top
View user's profile Send private message
bilbravo
Guru
Guru


Joined: 30 May 2003
Posts: 319
Location: Baltimore, MD

PostPosted: Fri Apr 16, 2004 5:41 pm    Post subject: Reply with quote

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


Joined: 05 Aug 2003
Posts: 1239
Location: Los Angeles, CA

PostPosted: Fri Apr 16, 2004 9:31 pm    Post subject: Reply with quote

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


Joined: 09 Feb 2004
Posts: 14

PostPosted: Tue Apr 20, 2004 8:38 pm    Post subject: mounting issues Reply with quote

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


Joined: 05 Aug 2003
Posts: 1239
Location: Los Angeles, CA

PostPosted: Tue Apr 20, 2004 8:55 pm    Post subject: Reply with quote

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
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