Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount only as root???
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
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Wed Nov 06, 2002 6:09 pm    Post subject: mount only as root??? Reply with quote

I keep getting the error "only root can mount this device" when i try to mount the cdrom or floppy from within kde.. I am logged in as a user with wheel group membership, this user is also a member of the cdrom group.

I must be able to mount and unmount both devices as this user rather than root. Any ideas? I am a recent convert to gentoo. I was running suse 7.3 before this and did not have that problem.

I even tried changing file permissions.. didn't help so i replaced them.

As root they mount/unmount just fine.

Chuck
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Nov 06, 2002 6:13 pm    Post subject: Reply with quote

man fstab. Look for the 'user' option.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Wed Nov 06, 2002 7:01 pm    Post subject: mount cd requires root??? Reply with quote

Worked perfectly! thank you!
just added the users option.

Chuck
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Sun Nov 10, 2002 10:37 pm    Post subject: Reply with quote

same thing, but wanting to be able to mount and umount samba drives

fstab looks like this:

Code:
/dev/hde1               /boot           ext3            noauto,noatime          1 1
/dev/hde5               /               xfs             noatime                 0 0
/dev/hde6               /usr            xfs             noatime                 0 0
/dev/hde7               /home           xfs             noatime                 0 0
/dev/hde8               /redhat         ext3            noatime                 0 0
/dev/hde9               /mandrake       xfs             noatime                 0 0
//tekkaman/music        /music          smbfs           username=guest,password=,user     0 0
//tekkaman/crap         /crap           smbfs           username=guest,password=,user     0 0
/dev/hde10              none            swap            sw                      0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro,user          0 0
/dev/cdroms/cdrom1      /mnt/burner     iso9660         noauto,user
proc                    /proc           proc            defaults                0 0


users can mount and umount cdroms, but fails when trying to mount samba mounts, sayingo nly root can.

can u see where I've gone wrong ?

ta!!
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
nmr_spectrometer
n00b
n00b


Joined: 07 Oct 2002
Posts: 55

PostPosted: Mon Nov 11, 2002 12:11 am    Post subject: Reply with quote

It would appear that the mount command (which I believe runs through /etc/fstab at startup) doesn't actually know anything about how to mount smb shares; it simply receives a binary argument from smbmount. My suggestion would be to add something like:

Code:
smbmount //tekkaman/music /music -o username=user,password=xxxxx

to your /etc/conf.d/local.start ; additionally, add a "smbumount /music" line to /etc/conf.d/local.stop, so things get unmounted nicely.
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Mon Nov 11, 2002 12:15 am    Post subject: Reply with quote

ah cool.. good idea :)

Thanks..

if i wanna mount something other than those, I'll continue to do it manually :)

ta
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
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