Problems with Samba and Windows 7 Clients

I just upgraded my server installation from openSuse 11.2 to openSuse 11.4. To be honest I don’t know about the Samba versions involved.
The strange effect was, that I was able to connect to my home share, but not to any other share at all.
The error message I got was “connection not allowed” on the client side.

I played around changing smb.conf many times, I changed samba security (from smbpasswd to tdbsam), I increased log level to 3 just to find several strange NT_STATUS_ACCESS_DENIED entries.
I checked file system rights, user passwords etc. etc. etc.
I still got always the same effect: It was possible to connect to the home share, but to no other.

Physically I have 2 drives, where one basically is the root partition containing /home and the other was mounted as /data.
The aliases on /data were not accessible.

Then I found this append: Von W7 auf Samba: NT_STATUS_ACCESS_DENIED - linuxforen.de – User helfen Usern

So I tried to change the mountpoint from /data to /home/data … and suddenly I was able to connect to all shares. ;-(

Well, I’m quite sure this is more a samba than an openSuse problem, but as it happened with openSuse, I decided to share this experience here - just in case someone else has similar troubles.
Of course I would be interested whether someone got similar problems, and what his solution was.

To find out about your samba versions use

rpm -qa | grep -i samba

Since it may be a problem with samba, this additional information may make the post more helpful to others.

It can be AppArmor issue.
Go to YaST and delete samba AppArmor profiles: smbd and nmbd.
Or disable AppArmor entirely.

And share your results :slight_smile:

On 2011-10-03 14:26, sobrus wrote:
>
> It can be AppArmor issue.
> Go to YaST and delete samba AppArmor profiles: smbd and nmbd.
> Or disable AppArmor entirely.
>
> And share your results :slight_smile:

Please remember that this is the “howto submission” forum. This is not
where questions are asked, here is where you explain how to do something,
already solved.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)