2011年7月3日 星期日

How to implement samba on fedora14

第一步安裝samba
yum -y install Samba

第二步 配置samba
編輯/etc/samba/smb.conf
# vi /etc/Samba/smb.conf

workgroup = WORKGROUP

security = share

[Share]                                     # any name you like
   path = /home/share               # shared directory
   writable = yes                       # OK to write
   guest ok = yes                      # guest OK
   guest only = yes                    # guest only
   create mode = 0777             # fully accessed
   directory mode = 0777 # fully accessed
   share modes = yes                # warn if some people access to a file


第三步 創建windows共用的目錄
# mkdir /home/share
# chown -R nobody. /home/share
# chmod 777 /home/ share
# smbpasswd -a daniel
 系統用戶名

第四步 啟動 samba服務

首先要把防火牆打開

#system-config-firewall
To allow Samba access to work through the firewall you must set 'Samba' as a 'Trusted Service'.
Selinux開啟samba功能
#system-config-selinux
Go to Boolean and type 'samba' in the Filter (without quotes).For any changes made above to the SELinux settings
 
 
最後,啟動 Fedora Samba 服務
# chkconfig smb on 
# chkconfig --list smb
 確認 2-5 on 的狀態
# /etc/init.d/smb start

最後在windows //IP 即可看到share

沒有留言: