티스토리 뷰

Feodra 18 Samba Server Fully accessed Dir

 

Create a Fully accessed Shared directory
  
Install Samba and Create a shared directory that anybody can read and write, and authentication is not needed.


1. Install and Configure Samba

[root@otaec ~]# yum -y install samba samba-client

[root@otaec ~]# mkdir /home/share

[root@otaec ~]# chmod 777 /home/share

[root@otaec ~]# vi /etc/samba/smb.conf

# near line 66: add
unix charset = UTF-8

# line 90: change (Windows' default)
workgroup = WORKGROUP

# line 96: uncomment and change IP address you allow
hosts allow = 127. 10.0.0.

# line 124: change (no auth)
security = share

# add at the last line
[Share]# any name you like
   path = /home/share# shared directory
   writable = yes# writable
   guest ok = yes# guest OK
   guest only = yes# look all as guests
   create mode = 0777# fully accessed
   directory mode = 0777# fully accessed
   share modes = yes# warn if some people access to a file

 


[root@otaec ~]# systemctl start smb.service
[root@otaec ~]# systemctl start nmb.service

[root@otaec ~]# systemctl enable smb.service
[root@otaec ~]# systemctl enable nmb.service

저작자 표시 비영리 변경 금지
신고
댓글