Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Leopard and Samba

Leopard and Samba
Thread Tools
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Jan 31, 2008, 09:05 AM
 
So far the only issue I've really had since upgrading my iMac to Leopard has been with using Samba to connect to a networked drive. I had a number of volumes on this shared network drive already set up and easily connected to under Tiger, but while I can see the overall drive in Finder, I can't connect to the contents of any of the volumes/folders on it. Finder just sits there with the rotating crosshair cursor and never seems to do anything. I found a hint online that had me use a couple of commands in Terminal, which allowed me to connect once, but that only changed the error I was getting when I tried again.

I was initially getting SMB error 6602, but now I get error 36.

The commands were:
sudo smbclient -L NETWORK_DRIVE_NAME (Replace NETWORK_DRIVE_NAME with the Windows name for the network drive)
sudo killall Finder.

So what's the deal here? First, Leopard doesn't mount a networked volume on the desktop but rather under a "shared" entry in the left-hand bar (and calls it a "sharepoint"-is this a reference to the Sharepoint software?), next I can't get consistent connections when I can connect at all. I'm stumped and ticked.
Glenn -----
OTR/L, MOT, Tx
     
Mac Elite
Join Date: Apr 2000
Location: Los Angeles, CA
Status: Offline
Reply With Quote
Jan 31, 2008, 01:53 PM
 
I've not had much problems with connecting to other Samba servers (using different security modes), but I did have trouble connecting to Windows shares requiring authentication. Leopard insists on connecting as a guest, and the authentication window didn't like the credentials I was supplying it.

Ultimately, I had to use smbclient, passing in all the requisite information (workgroup, username, password, share name).

I could get it to work when passing in the full SMB/CIFS URI in the Connect To Server... window (Cmd-K), but your password is stored there in plaintext.
     
Addicted to MacNN
Join Date: Oct 2001
Location: Automatic
Status: Offline
Reply With Quote
Jan 31, 2008, 02:33 PM
 
Originally Posted by ginoledesma View Post
Ultimately, I had to use smbclient, passing in all the requisite information (workgroup, username, password, share name).

I could get it to work when passing in the full SMB/CIFS URI in the Connect To Server... window (Cmd-K), but your password is stored there in plaintext.
What is smbclient?, a friend has issues with Leopard regarding samba thought… his two Macs both running 10.5 can't see the PCs on his LAN, they did under Tiger.


"That plane's dustin' crops where there ain't no crops."
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Jan 31, 2008, 05:26 PM
 
With my network drive, I can't even directly log onto the UNPASSWORDED public space I have set up. Of course this is the area I need to access most often... It's a network drive, not hosted on a computer at all, so it shouldn't be a problem and wasn't under Tiger. It looks like the OS is not seeing the drive as a server but as something else...
Glenn -----
OTR/L, MOT, Tx
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 2, 2008, 10:54 AM
 
Any new ideas? I have tried setting my computer to use the appropriate workgroup name, but it doesn't stick. I have tried logging in by FTP, and it can at least connect to the network drive, but I can't see anything in it.
Glenn -----
OTR/L, MOT, Tx
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 2, 2008, 08:36 PM
 
I should point out that I can log into the network drive from Terminal using smbclient, it just doesn't help me out very much. Once I do that, I can connect with Finder, but it doesn't give me access to anything, perhaps because it's logging in as "Glenn" instead of no user because the folder I want isn't passworded.
Glenn -----
OTR/L, MOT, Tx
     
Mac Elite
Join Date: Apr 2000
Location: Los Angeles, CA
Status: Offline
Reply With Quote
Feb 4, 2008, 01:21 PM
 
What is smbclient?, a friend has issues with Leopard regarding samba thought… his two Macs both running 10.5 can't see the PCs on his LAN, they did under Tiger.
It's a command line tool that's part of the Samba suite. The closest equivalent exposed by the Finder is the Go To Server (Cmd-K) command. However, this requires that you know either the hostname or IP Address of the host you want to connect to.

I should point out that I can log into the network drive from Terminal using smbclient, it just doesn't help me out very much. Once I do that, I can connect with Finder, but it doesn't give me access to anything, perhaps because it's logging in as "Glenn" instead of no user because the folder I want isn't passworded.
Odd. Mine logs in as "guest" instead of my preferred username. I've had to remove the Keychain entries so it prompts me for a username/password option, including the one where you can choose to connect as guest.

Are you connecting through the Finder sidebar/window/network browser? Or using the Go To Server (Cmd-K) option?
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 4, 2008, 03:27 PM
 
I'm using both Finder and the Go ->Connect to Server command and the Cmd-K option-same results. I tried it just now, and I could a) connect to the overall drive, which gave me an option for which folder to go to, and b) select the folder I wanted. But "c)", seeing the contents of that folder, is still a no-go; it shows zero contents of this VERY full folder. If I add the folder name to the SMB address line, it goes straight to the "empty" folder. When I click on the "shared" IP of the network drive in the left pane, it connects as "Glenn" rather than guest. I haven't tried deleting the keychain entry(ies) for the server, but I'll do that now-hadn't thought of it.
Glenn -----
OTR/L, MOT, Tx
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 4, 2008, 03:56 PM
 
Well I dumped all the keychain entries for the drive, but I also hooked up to it via USB just to be sure it was still working. The drive's contents are still there-all of it. So secure in the knowledge that my stuff was safe, I reconnected the Cat5 and tried again. I was able to log into the main folder of concern, but it still shows no contents-but the "184.99GB available" is correct. WTF!!! And I can't log into the other folders. They return an error that says "the volume "Foldername" could not be mounted."

I'll have to use a different computer to check this out and see if it's just the iMac that's giving me this sort of crap. Have to be later...
Glenn -----
OTR/L, MOT, Tx
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 4, 2008, 05:56 PM
 
Well the network drive works just spiffy from my MBP running Tiger (10.4.11 I think). Get Info says that it's a "cifs/smb" share. When I connect with my iMac running Leopard (10.5.1), it says that the overall shared device (shared by its IP address) is a "server", and the folders or volumes under it are "sharepoints." There is nothing in Mac Help on "sharepoint". When I can log into my main folder, Get Info says it's a volume, but it still won't show jack diddly in it.

Any ideas?
Glenn -----
OTR/L, MOT, Tx
     
Fresh-Faced Recruit
Join Date: Feb 2008
Status: Offline
Reply With Quote
Feb 5, 2008, 10:42 AM
 
I have a new iMac on a network running Leopard. The other iMacs etc are all running 10.4.n and can all acces a SMB share. I have the same problem and would love a pointer to a solution. I have tried to access the smb share using the fully qualified IP address from the finder's 'Go/Connect to server' smb://192.168 etc but only see an empty folder.
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 5, 2008, 05:29 PM
 
That's precisely what I'm seeing. Hopefully someone will help with this and get us both straightened out.
Glenn -----
OTR/L, MOT, Tx
     
Fresh-Faced Recruit
Join Date: Feb 2008
Status: Offline
Reply With Quote
Feb 8, 2008, 11:27 AM
 
Hello, all-

This is my first post here, but I may have something helpful to add. I was having the same issue connecting Samba shares in Leopard (from my Ubuntu 7.10 box), but I got it to work (at least for me).

For some reason the samba passwd file did not have a synced password (that was encrypted), so I added a user on my Ubuntu box, and subsequently, a password via:

sudo smbpasswd -a <username>

It then prompted me to enter a password. I then tried again to connect to the server in Leopard (cmd-K), entered the username and password, and it worked!

I hope this helps someone out there.
good luck.
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 8, 2008, 08:02 PM
 
That would be cool, except I don't have a way to add users to my NAS box. I tried to add the configuration system's username/password to SMB, and it didn't find it as a user (surprise) so it just didn't work. This approach makes sense, and if I could set up machine users it'd probably work for me. But I just want the same SMB functionality I had in Tiger...
Glenn -----
OTR/L, MOT, Tx
     
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Feb 9, 2008, 10:30 PM
 
If you upgraded to Leopard you will find some preference files located in /Library/Preferences/SystemConfiguration that need to be deleted.
Pretty much everything except com.apple.Boot.plist and com.apple.PowerManagement.plist.
Once you do this, you will need to reboot and reset any custom Network locations you may have had.
You will only need to do this once.

In any case, you will need to open System Preferences->Network and then select the first adapter in the list. Click on "Advanced" and then the WINS tab. From the Workgroup drop down menu, select the appropriate Windows Workgroup name.

You should now be able to use the Finder to access your device.
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 10, 2008, 08:59 AM
 
I've tried setting the correct workgroup, but have not been able to get any settings to stick. When I apply the setting then go back and look, it's not only not set the way I wanted it, my entry isn't on the list. Is this something that the prefs you mention control and will trashing them help? What about "preferences.plist"? Thanks!
Glenn -----
OTR/L, MOT, Tx
     
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Feb 10, 2008, 09:04 AM
 
This is exactly what the problem is, and note, you will have to restart your Mac.
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 10, 2008, 11:16 AM
 
I've deleted all the prefs except com.apple.Boot.plist and com.apple.PowerManagement.plist, rebooted, have finally been able to set the workgroup name, but still I can't get Finder to show the contents of the folder I'm trying to look at, nor will it even connect to the other, password-protected folders on the network drive. Boy is this annoying! I even restarted again after setting the workgroup name, and still no luck.
Glenn -----
OTR/L, MOT, Tx
     
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Feb 10, 2008, 11:48 AM
 
Have you tried to run 'smbtree' in Terminal? This should show you the shares on all servers and domains on your network. I know this isn't going to solve the issue, but at least you'll know if your Leopard machine knows that the sharepoints are there or not.
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 10, 2008, 01:53 PM
 
I hadn't before. No, the iMac doesn't know about the network drive via smbtree. I get to enter my password, then it sits and thinks for a few moments, then it comes back to the prompt.
Glenn -----
OTR/L, MOT, Tx
     
Fresh-Faced Recruit
Join Date: Dec 2001
Status: Offline
Reply With Quote
Feb 10, 2008, 03:22 PM
 
The only thing I can think of is that your Leopard machine for some reason is not finding any legitimate Master Browser service that knows of the share. At the very least you should see any other machines and your own shares when you use smbtree.
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 10, 2008, 07:36 PM
 
Nope, nothing. Finder sees my wife's iBook, but smbtree just returns to the prompt. Keeping in mind that this is a peer-level LAN, any suggestions for showing the iMac where a Master Browser Service might be, considering that under Tiger it saw the contents of these folders?
Glenn -----
OTR/L, MOT, Tx
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Feb 11, 2008, 06:16 PM
 
Well I don't know what the problem was, but the 10.5.2 update fixed it. Thanks for everyone's help!
Glenn -----
OTR/L, MOT, Tx
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:19 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2