LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2003, 04:10 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Mounting windows shares...using samba


Hello everyone.

Well, I will try and make this topic short and straight to the point.

Here is what I am attempting to do. I have a linux server that is being used as our backup machine. We have one central NT server that our users connect to, to retrieve data for the company. What I have done in the past is mount the windows shares directly to the backup server using the following command:

smbmount //server/C/ /samba/backup -o username=administrator

I would do this using 'root'. Once I initiated this command, I would then be asked for the administrator password for the 'server' and share 'C'. I would enter the password and the share was mounted. Simple enough.

Well, now im in a situation where I am trying to limit how much I use the root account (I am trying to get away from using root all the time.)

So what im trying to do now is mount the shares using the same account above, but using a normal account.

However, when I execute the same command above and after it prompts me for the password and I type it in, it kicks out the following error:

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

I'm not sure what I can do to fix this. Can anyone lend a hand here?

I'm using RH 9.0.

I appreciate everyones help.

Tarballed
 
Old 07-01-2003, 04:25 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try it with the suid bit set:
chmod +s /path/to/smbmount
 
Old 07-01-2003, 04:31 PM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
chmod +s for both smbmnt and smbumount
 
Old 07-01-2003, 05:03 PM   #4
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Alright, I did that and this is what I get now.

Code:
libsmb based programs must *NOT* be setuid root.
5098: Connection to server failed
SMB connection failed
OOf, any ideas on that one?

Tarballed
 
Old 07-01-2003, 05:03 PM   #5
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Looks like it is not even possible to do. :/
 
Old 07-01-2003, 05:21 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Maybe you should add fstab entries and allow users to mount / unmount them. Then you could just run as a user:
mount /mnt/myshare
 
Old 07-01-2003, 05:48 PM   #7
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Good thought. I need a brush up on mounting things in fstab.

Know of any good links (besides the man page ) that I could turn to?

Thanks.

Tarballed
 
Old 07-01-2003, 06:11 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Take a look at this post it may solve your original problem:
http://www.linuxquestions.org/questi...572#post232572

A basic fstab entry would be:
Code:
//winbox/share /mnt/myshare smbfs username=tarballed,password=mypass,owner,user,_netdev 0 0
 
  


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 shares with samba darkleaf Linux - Software 1 02-13-2005 07:13 AM
Mounting windows shares using samba. TheDirtyPenguin Linux - Software 1 07-05-2004 09:49 AM
Mounting Windows Shares using SAMBA Flossie Mandriva 2 03-26-2004 11:12 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 06:28 PM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:01 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