GD-ZYNE Website Design Logo WEB | INTRANET | DIRECT MARKETING


Web Development Resources
Welcome to GD-ZYNE, the soon to be new home of South Africa's premier Web Development resource portal. Looking for photoshop templates, or the odd PHP script resource, look no further!
Please check back regularly as we strive to bring our users a range of web-related resources which will include; SEO, Web Templates, Search Optimisation and Web Design as well as server side scripting like Microsoft ASP and our very own favourite - PHP.

My SAMBA Server is not behaving as it should! I see my shared folders but can not access them... Helpful Tip # 1
Seeing as I spent so much time on this, excluding the countless Google searches, I find it very fitting that this should be my very first "Helpful Tip" on the GD (zyne) portal.

If you, like myself, have encountered an issue with your SAMBA / LINUX (Centos 5.2 in my case) setup and have tried everything short of re-installing MS Server then please read on as this might just save your sanity.

Issue:

SAMBA has been setup correctly according to countless articles, sample configuration files and many helpful tips that one finds on the internet. However, even though I can see my shared folders and I can navigate through my root home directory (provided you are logged in as root) allowing me permission to read and write to my home directory, I still cannot get into any of my other shares regardless of setting the permissions to 777 on the shared folders.

Solution:

As one would of thought (well, at least myself) the problem would lie in my SAMBA setup, Alas, this was not to be the case. The problem was caused by SELinux (Security Enhanced Linux) which is a Linux feature that provides a variety of security policies. As my Linux server is a development machine which has no connection to the outside world, the quick solution to my issue was to set the enforcing of selinux policies to off (0), which as you can imagine solved my problem immediately.
Run the following shell command to disable enforcing.

# setenforce 0 (to turn it back on setenforce 1)

As I mentioned, this is a development server and thus I am not worried about disabling any security features. If you are having issues with live servers I would suggest reading up on SELinux, especially for SAMBA - http://fedoraproject.org/wiki/SELinux/samba

I hope this tip is helpful to you as it would of been to me?

GD (zyner)


Portfolio
Executive Bakery | Zonke Engineering | Precision Embroidery | Three Perfect Days | More Perfect Days | Sable Ranch | AWX | Netsurit | Elpavo | Marketing and More | Perfect Days in Africa | Shred-it South Africa | Securit South Africa

Software Downloads - GD-ZYNE recommended
Mail List King Pro