2012.08.23 19:51
Debian 에 SAMBA 서버 설정하기
1. 설치
# apt-get update
# apt-get install libcupsys2 samba samba-common
2. SAMBA 설정
# vi /etc/samba/smb.conf
[...]
# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = user <-- 로 수정
[...]
# /etc/init.d/samba restart
3. 공유 디렉토리 생성하기
# mkdir -p /home/samba-share/allusers
# chown -R root:users /home/samba-share/allusers/
# chmod -R ug+rwx,o+rx-w /home/samba-share/allusers/
# vi /etc/samba/smb.conf (아래 8 라인 추가)
[allusers]
comment = All Users
path = /home/samba-share/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
# /etc/init.d/samba restart
4. 계정 설정
# useradd samba-user -m -G users
# passwd samba-user
# smbpasswd -a samba-user
5. 윈도우즈 피시에서 공유 디렉토리 연결 테스트
시작 --> 실행 --> \\서버아이피 입력 후 엔터