LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-28-2003, 09:39 PM   #1
gargamel237
Member
 
Registered: Aug 2003
Location: Los Angeles
Distribution: gentoo
Posts: 52

Rep: Reputation: 15
SMB shares in fstab


I want to be able to mount smb shares from fstab quickly and easily. I have the line:

//thor/docs /mnt/documents smbfs noauto,user,umask=000,user=bman,password=******* 0 0

But when I try to mount it from a user account I get the error message:

smbmnt must be installed suid root for direct user mounts (500,500)
smbmnt failed: 1

Is there a workaround for this? The only reference I could find in the redhat archives implied that there wasn't. It works in Gentoo without problem, so I know it's possible.

Thanks.


Last edited by gargamel237; 08-28-2003 at 09:40 PM.
 
Old 08-29-2003, 06:33 AM   #2
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Hi

//server/share /mnt/dir smbfs username=user,password=xxx 0 0

Cheers
 
Old 08-30-2003, 01:47 AM   #3
gargamel237
Member
 
Registered: Aug 2003
Location: Los Angeles
Distribution: gentoo
Posts: 52

Original Poster
Rep: Reputation: 15
Yes, but that won't let non root users mount the share which is what I'm looking to do. It's when I add "users" to the options that things go wrong.

thanks
 
Old 08-30-2003, 08:46 AM   #4
r00tnuke
Member
 
Registered: Aug 2003
Location: /earth/usa/texas/houston
Distribution: Fedora C2
Posts: 64

Rep: Reputation: 15
I placed the following command line into my .bashrc file in my home directory. This will mount your share.

# Auto Samba Server Mount
smbmount //host/user /home/user/mnt/dirname -o username=user,password=123456

Where host is an IP or fully qualified doamin name. User is the login name etc.

I think your terminal command would be for suid change:
chmod 4750 smbmnt

As an example the above command chmod 4750 /usr/bin/smbmnt the first octet 4 sets the SUID to the owner root, 7 rws (4+2+1) for the Owner which would be rwx if 4 for the SUID was not present, 5 r-x (4+1) for the Group and 0 --- for Others.

If your still confused then try this...

To be sure your settings are correct execute your File Manager Super User Mode and check the properties of each of the 4 files smbmount, smbumount & smbmnt. Compare the permissions and make any needed changes.

r00tnuke

Last edited by r00tnuke; 08-30-2003 at 08:50 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting smb shares john8675309 Linux - Software 3 09-25-2005 09:54 PM
SMB shares and fstab sfagundes Fedora 1 12-30-2003 11:47 AM
SMB shares to OS X MadTurki Linux - Networking 6 12-02-2003 06:59 PM
making smb shares viewable from smb client via web browser scottpioso General 3 11-10-2003 04:25 PM
RH9 and smb shares Thaidog Linux - Newbie 1 05-07-2003 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration