Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Any user mounts...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Scorp
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2003
Posts: 118

PostPosted: Fri Aug 22, 2003 7:24 pm    Post subject: Any user mounts... Reply with quote

How do I get a non root user to be allowed to mount something?

I would like my user (in the wheel group) to be able to mount the cdrom /dev/cdroms/cdrom0 and my smbfs with mount -t smbfs -o username=Administrator //192.168.0.2/D$ /mnt/smb.
_________________
PowerBook G3, 400 Mhz, 192 megs of Ram Running Gentoo 1.4 and XFCE4
Back to top
View user's profile Send private message
Cossins
Veteran
Veteran


Joined: 21 Mar 2003
Posts: 1136
Location: Copenhagen, Denmark

PostPosted: Fri Aug 22, 2003 7:40 pm    Post subject: Reply with quote

Add 'user' to the options in fstab...
For example, my /dev/cdrom-entry in fstab looks like this:
Code:
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro,user   0 0


- Simon
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2508
Location: Silver City, NM

PostPosted: Fri Aug 22, 2003 7:40 pm    Post subject: Reply with quote

I let users mount devices with a "user" option in fstab:
Code:
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0

but this lets all users mount/umount. I don't know how to restrict it to a group of users.
Back to top
View user's profile Send private message
Scorp
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2003
Posts: 118

PostPosted: Fri Aug 22, 2003 7:51 pm    Post subject: Reply with quote

Thanks guys, I'm going to try that

but how about letting my regular user mount the smb share?
_________________
PowerBook G3, 400 Mhz, 192 megs of Ram Running Gentoo 1.4 and XFCE4
Back to top
View user's profile Send private message
Cossins
Veteran
Veteran


Joined: 21 Mar 2003
Posts: 1136
Location: Copenhagen, Denmark

PostPosted: Fri Aug 22, 2003 7:54 pm    Post subject: Reply with quote

You have to put the share in fstab and then pass the 'user' option again... I think, I never tried it...

- Simon
Back to top
View user's profile Send private message
Scorp
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2003
Posts: 118

PostPosted: Sat Aug 23, 2003 3:15 am    Post subject: Reply with quote

Cossins wrote:
You have to put the share in fstab and then pass the 'user' option again... I think, I never tried it...

- Simon


I'm not sure how you would do that... any ideas on what the line would look like?
_________________
PowerBook G3, 400 Mhz, 192 megs of Ram Running Gentoo 1.4 and XFCE4
Back to top
View user's profile Send private message
Cossins
Veteran
Veteran


Joined: 21 Mar 2003
Posts: 1136
Location: Copenhagen, Denmark

PostPosted: Sat Aug 23, 2003 7:23 am    Post subject: Reply with quote

I should think it would look like this:
Code:
//computer/share   /mountpoint   smbfs   user,username=Administrator   0 0


Try it...

- Simon
Back to top
View user's profile Send private message
Scorp
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2003
Posts: 118

PostPosted: Sun Aug 24, 2003 5:27 pm    Post subject: Reply with quote

Thank you. I will give it a try as soon as the lappy top is running again.
_________________
PowerBook G3, 400 Mhz, 192 megs of Ram Running Gentoo 1.4 and XFCE4
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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