System/OS
2003.04.23 10:29
[linux] 이기종간의 파일 공유(Samba)
조회 수 14949 댓글 0
주의사항 : 수많은 문서에 현혹되지 말아야 한다
(내용이 자세하고 많다고 해결책을 주지 않음 - 삼바 부문에선)
1. 표준 메뉴얼 http://www.kies.co.kr/~jhpark/Samba/samba/samba.html
표준 Q & A http://bbs.korea.co.kr/
삼바내의 설정 메뉴얼 $ SAMBA_HOME/docs/textdocs/DIAGNSIS.txt
2. 환경 설정
# 이대로 일단 해보고 기능을 추가하는 것이 좋다
$ vi /etc/smb.conf
Samba config file created using SWAT
workgroup = SERVERGROUP
security = SHARE
log file = /var/log/samba/log.%m
dns proxy = No
client code page = 949
[homes]
comment = Home Directories
read only = No
browseable = No
[tmp]
comment = Temporary File space
path = /tmp
guest ok = Yes
[public]
comment = Share File space
path = /home/public
writable = Yes # 'read only = No' not
guest ok = Yes
[oracle]
comment = Oracle8i Linux Database
path = /oracle
read only = Yes
guest ok = Yes
: wq!
$ vi /etc/hosts
# 127.0.0.1 localhost.localdomain localhost your.domain # 이부분은 지우고
# 210.xxx.xxx.xxx localhost.localdomain # 이부분은 변경한다
210.xxx.xxx.xxx host.your.domain
:wq!
$ /etc/rc.d/init.d/smb restart
$ smbclient -L localhost
3. 윈도우 운영체제 95/98/NT/2000에서 패스워드 에러가 날 때
# win95/98인 경우
C:>regedit
HKEY_LOCAL_MACHINESystemCurrentControlSetServicesVxDVNETSUP
등록 -> DWORD값 -> 이름: EnablePlainTextPassword
값 : 1
# win2000인 경우
C:>regedit
HKEY_LOCAL_MACHINESystemCurrentControlSetServicesRdrParameters
"EnablePlainTextPassword"=dword:00000001
# winNT servicepack3+인 경우
C:>regedit4
HKEY_LOCAL_MACHINESystemCurrentControlSetServicesLanmanWorkStationParameters
"EnablePlainTextPassword"=dword:00000001
4. 웹을 통한 삼바 설정(웹로직 SWAT)
$ vi /etc/services
swat 901/tcp
$ vi /etc/inetd.conf
swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat
$ kill -1 PID
$ netscape http://192.168.1.121:901
login: root passwd: toconet
5. Q & A
- IPC 패스워드 문제 : security = user -> security = share
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
178 | System/OS | 무료로 HTTPS 적용하기 (Let's Encrypt) | hooni | 2017.10.28 | 1665 |
177 | System/OS | [linux] iptables 초간단 세팅 스크립트 | hooni | 2017.09.26 | 1393 |
176 | System/OS | [mac] Homebrew/rvm/cocoapod setting | hooni | 2017.07.29 | 1164 |
175 | System/OS | [windows] 윈도우즈 콘솔에서 정품인증 하는 방법 | hooni | 2017.05.24 | 5547 |
174 | System/OS | 무료로 HTTPS 적용하기 (Lets' Encrypt) | hooni | 2017.02.16 | 2366 |
173 | System/OS | [android] 초간단 HTTP, POST 전송 샘플 1 | hooni | 2017.02.16 | 3628 |
172 | System/OS | Enable Safari Hidden Debug Menu in Mac OS X | hooni | 2017.02.07 | 1708 |
171 | System/OS | Enable the Develop Menu in Safari | hooni | 2017.02.07 | 1318 |
170 | System/OS | [mac] OS X 엘 캐피탄에서 Soudflower 사용하기 2 | hooni | 2016.10.03 | 1161 |
169 | System/OS | [mac] Mac OS에서 재생되는 사운드를 녹음하는 방법 | hooni | 2016.10.03 | 1731 |
168 | System/OS | 맥 OS X 에서 스크린 화면 캡쳐 단축키 (Mac Print Screen) | hooni | 2015.07.21 | 2030 |
167 | System/OS | [windows] 윈도우 사용자 계정 로그인 암호 분실, 암호 변경하는 방법 | hooni | 2015.07.09 | 21511 |