티스토리 뷰

Debian 6 Samba Server Fully accessed dir


Create a Fully accessed directory

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


1. Install Samba

root@lan:~# aptitude -y install samba 


# specify workgroup's name




2. Configure Samba

root@lan:~# mkdir /home/share 

root@lan:~# chmod 777 /home/share 

root@lan:~# vi /etc/samba/smb.conf 


# line 34: add

unix charset = UTF-8


# line 64: uncomment and change IP address you allow

interfaces = 127.0.0.0/8 10.0.0.0/24


# line 71: uncomment

bind interfaces only = yes


# line 103: 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# guest only

   create mode = 0777# fully accessed

   directory mode = 0777# fully accessed

   share modes = yes# warn if some people access to a file


root@lan:~# /etc/init.d/samba restart 

Stopping Samba daemons: nmbd smbd.

Starting Samba daemons: nmbd smbd.



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