[CentOS] Samba

2014. 9. 3. 16:58OS/CentOS

# yum -y install samba

# chkconfig smb on

# vi /etc/samba/smb.conf

>---------------------------------------<

[www]

comment = Home

path = /home/www

browseable = no

delete veto files = yes

veto files = /.DS_Store/Thumbs.db/

hide dot files = yes

hide files = /.DS_Store/Thumbs.db/desktop.ini/*.tmp/

writable = yes

# Windows System mask

force create mode = 0777

force directory mode = 0777

# Unix System mask

force security mode = 0777

force directory security mode = 0777

valid users = +root

>---------------------------------------<


# setsebool -P samba_export_all_rw on

# service smb start

# smbpasswd -a root

# vi /etc/sysconfig/iptables

>---------------------------------------<

tcp 139

tcp 445

>---------------------------------------<


# service iptables restart

'OS > CentOS' 카테고리의 다른 글

[CentOS] vsftpd  (0) 2014.09.24
[CentOS] Web  (0) 2014.09.05
[CentOS] NFS  (0) 2014.09.03
[CentOS] RAID  (0) 2014.08.25
[CentOS] Network Bond  (0) 2014.08.04