LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2004, 04:00 PM   #1
Chebyshev
LQ Newbie
 
Registered: May 2004
Posts: 11

Rep: Reputation: 0
Help with Mounting Windows Shares as non-root


I know how to mount a Windows share as root (smbmount yada-yada), but how do I set it up so that I can mount them as a normal user? I get:

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

I know that i should know what this means, but I don't
Could anyone explain to me how to do this? Thanks.
 
Old 05-29-2004, 06:08 PM   #2
Higs
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Hey, try this, I needed the same help yesterday working with Samba for my MythTV setup and I'm using Linneighborhood, and the answer to your question was answered in a FAQ for Linneighborhood. Here it is, hope this helps (it helped me):

Smbmnt must be installed setuid root
This error occurs if you want to mount any smb share as user without root rights. You must set the setuid root bit on your executables 'smbmnt' and 'smbumount'.
Do the following:

login as root and change to the directory where this tools resides (/usr/bin ?)
do a 'ls -l smbmnt', you'll see something like -rwxr-xr-x
invoke 'chmod +s smbmnt', after that you'll see something like -rwsr-xr-x
do the same with smbumount
The tools will now be executed with the rights of the tool's owner, in this case root and you should be able to use this tools as normal user.
Note: Don't set smbmount to setuid root, smbmnt is quite enough.
 
Old 05-29-2004, 07:22 PM   #3
Chebyshev
LQ Newbie
 
Registered: May 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks a bunch mate, that worked perfectly!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 as a non-root user dmancine Linux - Networking 0 08-24-2004 03:24 PM
Mounting windows shares... mattbeekler Linux - Software 2 11-24-2003 01:35 PM
Mounting Windows Shares ilumin8d Linux - Networking 4 07-15-2003 02:36 AM
Mounting Windows Shares Thermos Linux - Networking 3 07-09-2003 01:34 PM
mounting windows shares Moebius Linux - Newbie 12 12-19-2002 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration