Hi,

I had a further related problem - MS Office files could not be opened by double-clicking them on the network shares - Word or Excel froze. I assume it was having problems creating the lock files, though LibreOffice opened them fine and all other file types seemed to open OK in their respective applications. As I use MS Office quite a lot I needed to get it working somehow.

I have found a solution, or rather a work-around..... remove Samba 3.x and install Samba 4.x. Below are the steps that work for me, though whether every step is needed I'm not sure.

That doesn't answer why the newer version of Samba 3 had problems though, but as it works I'm not that bothered. :)

Paul.


service smb stop
service nmb stop

cp /etc/samba/smb.conf /etc/samba/smb.conf.safe

yum remove samba samba-client samba-common
yum install samba4 samba4-client samba4-common

mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
cp /etc/samba/smb.conf.safe /etc/samba/smb.conf
nano /etc/samba/smb.conf

# remove the "security = share" line

smbpasswd -a paul
smbpasswd -a www

chkconfig smb on
chkconfig nmb on

service smb start
service nmb start



On 29/10/2014 10:39, Paul Stenning wrote:
Hi,

I am having an issue accessing Samba shares on CentOS servers from Windows 7 PCs after updating CentOS from 6.5 to 6.6 (using yum update).

This is my /etc/samba/smb.conf file

# Global Settings
[global]
        workgroup = WORKGROUP
        security = share
        map to guest = bad user
        netbios name = SPTECH

# Share Definitions
[www]
        writable = yes
        path = /var/www/html
        force group = www
        guest ok = yes
        force user = www
        browsable = yes
        create mode = 777
        directory mode = 777

[work]
        writable = yes
        path = /home/work
        force group = root
        guest ok = yes
        force user = root
        browsable = yes
        create mode = 777
        directory mode = 777


With CentOS 6.5 on the server the server name is shown in "Network" in Windows 7 and when opened the individual shares ("www" and "work") are shown and can be accessed as expected.

With CentOS 6.6 on the server the server name is still shown in "Network" but when opening it there is a long delay and then an error saying "The RPC server is too busy to complete this operation".

It is still possible to map network drives manually as \\sptech\www or whatever in Windows, and access the files on them as normal. It is just the network browsing in Windows Explorer that does not work after the upgrade to CentOS 6.6.

I have both versions of CentOS in VirtualBox machines and on physical machines, and have tried from two different Windows 7 PCs, and the issue is consistent and repeatable.

Checking Samba versions with smbd -V

CentOS 6.5 = 3.6.9-169.el6_5
CentOS 6.6 = 3.6.23-12.el6

Does anyone have any ideas, please? Perhaps something I can add to smb.conf to get it behaving again, or log files I can check for clues etc? These are server installations so bash console only (no GUI). I have a basic working knowledge but an certainly not an expert.

Is there already a known issue reported somewhere and I just need to wait for a fix? I don't know where to look for that info.

Thank you!
Paul


--

*Paul Stenning*
S&P Technology
Box 170, 89 Commercial Road, Bournemouth, BH2 5RR

[email protected] <mailto:[email protected]>
www.sp-tech.co.uk <http://www.sp-tech.co.uk>

/Before printing, please consider the environment./

*Confidentiality*
This email and its attachments (if any) are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error, then delete them from your computer immediately.

*Security Warning*
Please note that this email has been created in the knowledge that email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us.

*Viruses*
Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are virus free.

--
Next meeting:  Bournemouth, Tuesday, 2014-11-04 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:[email protected]
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to