LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-25-2011, 02:51 AM   #1
Stannley
Member
 
Registered: Jul 2010
Posts: 35

Rep: Reputation: 0
Samba Home Shares Not Working in Red Hat 6.1


Hi Guys

I am in the process of building a Red Hat 6.1 server and appear to have pretty much everything working except for the Samba Home shares.

Users are able to log in as themselves through Putty and their home directories are created automatically but they are unable to access those same folders through Windows (XP) Explorer. They receive the following error message:

Code:
\\rh6-scriptura\simon.tann is not accessible.  You might not have permission to use this network resource.  Contact the administrator of this server to find out if you have access permissions.
smb.conf:
Code:
[global]
        workgroup = PFS
        realm = PFS.COM.AU
        server string = Samba Server Version %v
        security = ADS
        allow trusted domains = No
        password server = DCWA1.PFS.COM.AU DCWA2.PFS.COM.AU
        restrict anonymous = 2
        client NTLMv2 auth = Yes
        log file = /var/log/samba/log.%m
        max log size = 50
        os level = 0
        local master = No
        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431
        template homedir = /home/winnt/%D/%U
        template shell = /bin/bash
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = Yes
        cups options = raw

[homes]
        comment = Home Directories
        read only = No
        create mask = 0775
        inherit permissions = Yes
        browseable = No
Home directories have 755 permissions applied.

I am hoping that someone can see something stupid that I have set / not set in my configuration file.

Cheers

Simon
 
Old 10-25-2011, 10:23 AM   #2
strick1226
Member
 
Registered: Feb 2005
Distribution: CentOS, Fedora, OS X, SLES, Ubuntu
Posts: 273

Rep: Reputation: 51
Could be an SELinux issue. I ran into a similar problem on a CentOS box setup a while back.

Code:
# sestatus | grep -i mode
If it tells you "enforcing" then you probably need to modify the SELinux parameters to enable sharing of home folders...

Code:
# setsebool -P samba_enable_home_dirs=1
Restart smb service and I think that will do it for you.


Hope this helps.
 
Old 10-25-2011, 07:19 PM   #3
Stannley
Member
 
Registered: Jul 2010
Posts: 35

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by strick1226 View Post
Could be an SELinux issue. I ran into a similar problem on a CentOS box setup a while back.

Code:
# sestatus | grep -i mode
If it tells you "enforcing" then you probably need to modify the SELinux parameters to enable sharing of home folders...

Code:
# setsebool -P samba_enable_home_dirs=1
Restart smb service and I think that will do it for you.


Hope this helps.
Yep that was it! Thanks a lot mate, you have brought a long period of suffering to an end!
 
Old 10-26-2011, 09:05 AM   #4
strick1226
Member
 
Registered: Feb 2005
Distribution: CentOS, Fedora, OS X, SLES, Ubuntu
Posts: 273

Rep: Reputation: 51
Glad to hear it! Cheers!
 
  


Reply

Tags
red hat, samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Home Shares Problem ppawcio Red Hat 1 12-21-2010 09:45 AM
Samba home shares tqz Linux - Server 4 01-17-2010 03:18 AM
win xp home edition and samba home shares scheidel21 Linux - Software 8 10-09-2008 12:47 AM
samba home directory shares walewis Linux - Software 8 09-28-2003 06:03 PM
Red Hat 9 printool samba Not Working alanlq Linux - Software 0 05-08-2003 07:13 AM


All times are GMT -5. The time now is 01:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration