Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

I need help with SMB, is it broken??

Hey everyone, I have Leopard Server and SMB enabled. For whatever reason, I absolutely cannot connect to shares from Windows or Mac. I type my servers IP address \\10.0.0.25 or I browse in workgroups and click it. It asks for username and password which I type, but it just changes it to mycomputername\username. I've tried typing the server's name darwin\username but no luck. I tried from Mac, using AFP, works great, I tried SMB from mac, says username or password is incorrect. The weird thing too is I have guest access turned on, but if I choose connect as guest on mac, it says guest access it not enabled on the server. Is something broken? Here's some lines from the log:

[2009/04/19 18:19:40, 0] /SourceCache/samba/samba-187.8/samba/source/lib/util sock.c:set_socketoptions(261)
Failed to set socket option SO_KEEPALIVE (Error Invalid argument)
[2009/04/19 18:19:40, 0] /SourceCache/samba/samba-187.8/samba/source/lib/util sock.c:set_socketoptions(261)
Failed to set socket option TCP_NODELAY (Error Invalid argument)
[2009/04/19 18:19:40, 0] /SourceCache/samba/samba-187.8/samba/source/lib/util sock.c:get_peeraddr(1224)
getpeername failed. Error was Invalid argument
[2009/04/19 18:19:40, 0] /SourceCache/samba/samba-187.8/samba/source/lib/util sock.c:writedata(562)
write_data: write failure in writing to client 0.0.0.0. Error Broken pipe
[2009/04/19 18:19:40, 0] /SourceCache/samba/samba-187.8/samba/source/lib/util sock.c:sendsmb(761)
Error writing 4 bytes to client. -1. (Broken pipe)
[2009/04/19 18:23:46, 0] /SourceCache/samba/samba-187.8/samba/source/smbd/server.c:main(890)
smbd version 3.0.25b-apple started.
Copyright Andrew Tridgell and the Samba Team 1992-2007
[2009/04/19 18:23:46, 1] /SourceCache/samba/samba-187.8/samba/source/param/params.c:Parameter(393)
params.c:Parameter() - Unexpected end-of-file at: ¿
[2009/04/19 18:23:46, 0] /SourceCache/samba/samba-187.8/samba/source/printing/pcap.c:pcap cachereload(159)
Unable to open printcap file /etc/printcap for read!

Mac Pro, Mac OS X (10.5.6)

Posted on Apr 19, 2009 4:22 PM

Reply
9 replies

Apr 19, 2009 7:56 PM in response to davidh

Thanks for the reply here's the results:

Last login: Sun Apr 19 17:44:11 on ttys000
Darwin-Server:~ administrator$ sudo changeip -checkhostname

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:

Primary address = 10.0.0.25

Current HostName = Darwin-Server.local

The DNS hostname is not available, please repair DNS and re-run this tool.

Darwin-Server:~ administrator$ sudo serveradmin settings smb
smb:realm = "DARWIN.PRIVATE"
smb:lanman auth = "no"
smb:workgroup = "WORKGROUP"
smb:wins support = no
smb:domain master = no
smb:map to guest = "Bad User"
smb:enable print services = "yes"
smb:wins server = emptyarray
smb:use spnego = yes
smb:use kerberos keytab = yes
smb:security = "USER"
smb:server string = "Darwin Server"
smb:auth methods = "guest odsam"
smb:ntlm auth = "yes"
smb:netbios name = "darwin"
smb:max smbd processes = 100
smb:adminCommands:homes = yes
smb:adminCommands:serverRole = "standalone"
smb:adminCommands:ldapRole = "1.1 - hosting a master LDAP directory server\n"
smb:dos charset = "437"
smb:log level = 1
smb:preferred master = no
smb:enable disk services = "yes"
Darwin-Server:~ administrator$

Apr 20, 2009 3:38 AM in response to leemoreau

That's step #1, first priority that needs to be fixed,

"Current HostName = Darwin-Server.local

The DNS hostname is not available, please repair DNS and re-run this tool."

.local is not a true, proper FQDN, and OS X Server is (frankly, rightly so), very finicky about DNS.
You must must must have working DNS entries (verified working forward and reverse lookup) for your OS X Server. You don't need to run DNS on the server itself, so seek help from your network administrator with this.

Also, Windows and Mac OS treat ".local" differently.
See the "10.4 and later" section of
http://support.apple.com/kb/HT2385

Apr 20, 2009 5:49 AM in response to leemoreau

Okay thanks I'll check.... but the server install said to call my hostname something like server.local or server.private so I did. I am the network administrator, I owna small business of 3 employees. I am technical just not really with networking. I went with Leopard server over something else since the Apple site seemed to make it seem easier. My companies website is invution.com and my server is called darwin. Should my fqdn be something like darwin.invution.com then, even though it has nothing to do with my invution.com domain??

Apr 20, 2009 6:07 AM in response to leemoreau

Not sure if I did this right, I used the changeip command so now it says my hostname is darwinqueenstreet.invution.com and not darwin.local anymore. When I look under DNS log though it still shows things like:

20-Apr-2009 09:05:09.041 zone private/IN/com.apple.ServerAdmin.DNS.public: NS 'darwinqueenstreet.invution.com.private' has no address records (A or AAAA)

So it still seems to be adding private to the end? Is that right or if not is there a guide to changing the fqdn somewhere? Or is it easier to just reinstall the whole server from scratch?

Message was edited by: leemoreau

I need help with SMB, is it broken??

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.