이 블로그 검색

목요일, 8월 26, 2010

Samba Configuration and SELinux

Install
#yum -y install samba

Configuration
/etc/samba/smb.conf
/etc/samba/smbusers

I found I can't connect to samba server from Windows. Why?
- Because of SELinux

SELinux configures to prevent from changing home directory by default.
#setsebool -P samba_enable_home_dirs 1   //True on 1, False on 0
#setsebool -P use_samba_home_dirs 1 // for remote samba server

Still doesn't work.
To check SELinux status,
#sestatus
To change the policy,
#set enforce 0 //disable. 1 for enabling
To set SELinux permenantly,
#vi /etc/selinux/conf

To check syntax of smb.conf,
#testparm

Still doesn't work. Why?
I found the solution!!
That's because I missed to make an eligible samba user account.
#smbpasswd -a jimmy

Tip!) for Homes directory access,
   need to disable 'valid users = %s' line.

댓글 없음:

댓글 쓰기