Hi all,

Doing a bit of research on samba and hostname lead me to find the actual
cause of the problem. If you don't specify the "netbios name = "
directive in the samba configuration(smb.conf) file, samba uses hostname
as the netbios name (ref:
http://www.justlinux.com/forum/archive/index.php/t-126124.html read
cowanrl's comment) and the maximum length of a netbios name is 16
characters. However, Microsoft limits the netbios name to 15 characters
(ref: http://support.microsoft.com/kb/163409).

In my case i had not specified the "netbios name = " directive in
smb.conf file and the hostname was more than 16 characters. Adding
"netbios name = " to something less than 15 characters did the trick. My
hostname is more than 16 characters. 

Hope this helps some of you out there.

Thanks,
Amit More

On Mon, 2011-03-21 at 18:16 -0700, Amit More wrote:
> Hello all,
> 
> After spending some time looking into the problem, I have found out that 
> changing the hostname of the machine on which samba was running to be 16(or 
> less) characters long did the trick. With "internalfileserver"(which is 18 
> characters long) as hostname Mac users were not able to connect to the share 
> via "connect to server"(apple + k) application but could connect via the 
> command line. Changing the hostname to "fileserver"(which is 10 characters 
> long) allowed Mac users to connect to the share via "connect to server" 
> application as well as via the command line. 
>  
> I am not able to figure this out. I will share it with samba users once i 
> find something useful.
> 
> Thanks,
> Amit More
> 
> 
> On Thu, 2011-03-17 at 18:51 -0700, Amit More wrote:
> > Hello all,
> > 
> > 
> > I have installed samba version 3.3.2 on Ubuntu 9.04 server 32-bit
> > following the documentation
> > https://help.ubuntu.com/9.10/serverguide/C/samba-fileserver.html
> > 
> > 
> > Windows and Ubuntu users can see and mount the shares with no problem at
> > all. 
> > 
> > Mac OS 10.6.x users can connect to samba from terminal using smbclient,
> > but they are refused connection when they try to connect via finder (ie
> > using apple + k). The error Mac users get is “wrong username or
> > password”. However, they can connect via finder only when they prefix
> > the username with any domain name. They can pass any arbitrary domain
> > name before the username to connect to the samba share. 
> > 
> > 
> > To be more clear here is an example
> > 
> > smb://server.domain.com/File_share
> > username: arbitrary-domain-name\username
> > 
> > 
> > Also, Mac OS X users having problem connecting to samba running on
> > Ubuntu server are able to mount the shares from Windows Server 2003 via
> > finder.
> > 
> > 
> > I have set the following parameters in my /etc/samba/smb.conf file
> > 
> > workgroup = WORKGROUP 
> > 
> > server string = %h server (Samba, Ubuntu)
> > 
> > dns proxy = no
> > 
> > security = user
> > 
> > encrypt passwords = true
> > 
> > passdb backend = tdbsam
> > 
> > obey pam restrictions = yes
> > 
> > passwd program = /usr/bin/passwd %u
> > 
> > passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*
> > \spassword:* %n\n *password\supdated\ssuccessfully* .
> > 
> > map to guest = bad user
> > 
> > usershare allow guests = yes
> > 
> > [share]
> > 
> > comment = Ubuntu File Server Share
> > 
> > path = /srv/samba/share
> > 
> > browsable = yes
> > 
> > guest ok = no
> > 
> > read only = no
> > 
> > create mask = 0755
> > 
> > 
> > 
> > Things that I have tried:
> > 
> >      1. Adding public = yes in share
> >         
> >      2. Setting encryption = false
> >         
> > 
> > I am new to samba and have been doing research for a long time to get
> > this working. Is there any workaround for the problem that I am facing.
> > I would appreciate all your help.
> > 
> > 
> > Thanks in advance,
> > 
> > Amit More
> > 
> > 
> > -- 
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/options/samba
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to