[Samba] Windows 2008 Standard SP2 cannot access samba share by hostname but ok with IP
rowlandpenny at googlemail.com
Thu Oct 10 13:11:02 MDT 2013
On 10/10/13 20:04, Jerome Yanga wrote:
> Changing the security alone (regardless of removing the socket options
> or not...i tested both) resolved the first issue (connecting via
> hostname). However, the second issue is still there.
> Just a refresher, here are the two issues issues.
> 01) Windows 2008 Standard servers cannot access the samba shares via
> the hostname.
> 02) The popup window "Error 0x80070021: The process cannot access
> the file because another process has locked the portion of the file"
> is encountered whenever a file is copied into the share.
> On Thu, Oct 10, 2013 at 8:03 AM, Jerome Yanga <jerome.yanga at gmail.com
> <mailto:jerome.yanga at gmail.com>> wrote:
> I shall try this and will let you know the outcome.
> On Thu, Oct 10, 2013 at 7:46 AM, Rowland Penny
> <rowlandpenny at googlemail.com <mailto:rowlandpenny at googlemail.com>>
> On 10/10/13 15:31, Jerome Yanga wrote:
>> Here are the info that you have requested. I had to change
>> the names a bit. :)
>> The two issues that I am having are as follows:
>> 01) Windows 2008 Standard servers cannot access the samba
>> shares via the hostname.
>> 02) The popup window "Error 0x80070021: The process cannot
>> access the file because another process has locked the
>> portion of the file" is encountered whenever a file is copied
>> into the share.
>> OS: RHEL 6.4 (32 bit)
>> Samba version 4.0.0-55
>> workgroup = TEST
>> realm = SAMPLE.COM <http://SAMPLE.COM>
>> netbios aliases = SAMBA1, SAMBA2
>> server string = Samba Server Version %v
>> security = DOMAIN
>> map to guest = Bad Uid
>> username map = /etc/samba/user_map
>> syslog = 2
>> log file = /var/log/samba/samba.log
>> max log size = 50000
>> deadtime = 5
>> max smbd processes = 300
>> socket options = SO_RCVBUF=32767 SO_SNDBUF=32767 TCP_NODELAY
>> IPTOS_LOWDELAY IPTOS_THROUGHPUT
>> load printers = No
>> printcap name = /dev/null
>> disable spoolss = Yes
>> show add printer wizard = No
>> os level = 1
>> local master = No
>> browse list = No
>> wins server = 10.1.1.1
>> host msdfs = No
>> idmap config * : backend = tdb
>> printing = bsd
>> cups options = raw
>> print command = lpr -r -P'%p' %s
>> lpq command = lpq -P'%p'
>> lprm command = lprm -P'%p' %j
>> oplocks = No
>> level2 oplocks = No
>> path = /net/server1/nfs_share1
>> read only = No
>> On Thu, Oct 10, 2013 at 7:14 AM, Rowland Penny
>> <rowlandpenny at googlemail.com
>> <mailto:rowlandpenny at googlemail.com>> wrote:
>> On 10/10/13 15:02, Jerome Yanga wrote:
>>> NetBIOS is set to Default.
>>> The DNS works on the Windows 2008 server. I can ping
>>> the hostname of my RHEL machine from the windows server.
>>> On Thu, Oct 10, 2013 at 2:40 AM, Rowland Penny
>>> <rowlandpenny at googlemail.com
>>> <mailto:rowlandpenny at googlemail.com>> wrote:
>>> On 09/10/13 18:04, Jerome Yanga wrote:
>>> Has anyone seen this situation?
>>> My Windows 2008 Standard SP2 x86_64 cannot
>>> access my samba share using
>>> \\<hostname> but connects properly when
>>> connecting to it by
>>> This sounds like a DNS problem, can you ping
>>> <hostname> from the windows 2008 server ?
>> OK, what version of samba are you using on your RHEL
>> machine ? and could you please post your smb.conf.
> OK, try changing 'security = DOMAIN' to 'security = ADS' and
> remove the 'socket options' line, join the machine to the
> domain and try again. From my reading of man smb.conf
> 'security = DOMAIN' only works against a NT domain.
Hi, well one step closer then ;-)
You do not need the socket options line anymore, that is the only reason
I said to remove it.
Is there anything special about the file you are trying to copy ? i.e.
where is it coming from.
More information about the samba