LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-27-2004, 08:21 PM   #1
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Rep: Reputation: 30
Samba 3.0.5 Oddness - Mounting smbfs shares


I have a puzzler for all the samba experts out there. I upgraded to 3.0.5
from samba 3.0.4. I just noticed troubles mounting smb shares. I'm not sure
if this happened with the 3.0.5 update or when I installed 3.0.4 since it's
been some time since I've tried to mount a smb share. Anyway, here is the
symptom:

# mount -t smbfs -o username=administrator //w3ksvr/g$ /mnt/hd
Password
# ls /mnt
/usr/bin/ls: /mnt/hd: Permission denied
cdrom/ floppy/ music/ pendrive/ winxp/
#

Notice how it won't even let me see the /mnt/hd directory. Before I mount the
share I can see it just fine like so:

drwxr-xr-x 7 root root 4096 Jun 22 17:33 cdrom/
drwxr-xr-x 2 root root 48 Mar 16 2002 floppy/
drwxr-xr-x 2 root root 48 Mar 16 2002 hd/
drwxr-xr-x 4 rignes users 16384 Dec 31 1969 music/
drwxr-xr-x 2 root root 48 Apr 14 21:28 pendrive/
dr-xr-xr-x 1 rignes users 12288 Jul 27 00:51 winxp/

I've tried chmod 777 on /mnt/hd. I've also tried mounting it with umask, uid,
and gid options (with appropriate values).

If I uninstall samba 3.0.5 and install samba 2.2.8 from slackware 9.1 I can
mount the share fine with the mount command mentioned above. Also, thinking
that there was something strange with the 3.0.5 package I downloaded the latest
samba source and compiled it myself. Still, I get that strange Permission
denied error.

Now, one simple solution would be to just use 2.2.8, which I may do anyway.
But then I'll always be curious about what is different about 3.0.5. Besides,
knowing the answer my prove useful sometime in the future.

I've googled around but haven't managed to locate something that looks useful.

I'll keep trying while I await all your thoughts.
.
Even a hint in the right direction would be wonderful.

Thanks,

Brian
 
Old 07-28-2004, 07:27 PM   #2
jhumeston
Member
 
Registered: Mar 2004
Posts: 50

Rep: Reputation: 15
Perhaps its because its an administrative share on the windows machine?
The mount command is correct - you may try to put the password on the command line as well by putting the -o username=administrator,password=whatever //host/share /localdir

you may try creating another share on the windows server with specific permissions addition to the administrative $ share.
 
Old 07-28-2004, 10:11 PM   #3
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
I figured it out. It seems that with samba 3.x.x it handles smb signing differntly than older versions. In Windows 2003 there are two options, one is to always sign smb traffic and reject all who don't know how, and the other is to sign smb traffic for clients that can, but not for those who can't. For older versions of samba it was ok for me to turn off the always sign option in active directory on Win2003 and it was happy. But, in samba 3.x.x I must turn off both. Essentially totally turning off smb signing for all my clients, even the windows ones that can sign smb.

I'm guessing samba it saying that it can use smb signing when it really can't thus causing my permission denied problem.

The next quesiton then is if there is a smb.conf directive that will turn off smb signing on the samba side and let me turn on smb signing for the rest of the network.

I'll man smb.conf when I'm more awake.

Brian
 
Old 08-16-2004, 12:19 PM   #4
Tyrr
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Nice work!

Thanks a bunch!

I have been having the exact same issue, and this workaround is what I needed!

It would be nice if Samba would fix this for security purposes.

We had this issue on sever flavors of Linux as a FYI (Gentoo, Fedora 1 &2). So it is for sure Samba and Windows 2003 Secure Communication having problems.

-=Tyr
 
  


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 shares with samba darkleaf Linux - Software 1 02-13-2005 06:13 AM
trouble mounting samba shares flynnhandley Linux - Software 5 07-01-2004 10:19 AM
Problems mounting samba shares nairnie Linux - Software 3 11-28-2003 07:34 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
Mounting Win98 shares using SAMBA desbyleo Linux - Software 3 02-17-2002 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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