Skip to content

우분투에 Samba 를 설치하자

조회 수 19232 추천 수 0 2010.11.08 17:17:45
1. Samba 설치
sudo apt-get install samba 명령을 통해서 samba를 설치한다.

sooya@sooya-ls50:~$ sudo apt-get install samba
...
  samba
...
--------- IMPORTANT INFORMATION FOR XINETD USERS ----------
The following line will be added to your /etc/inetd.conf file:

#<off># netbios-ssn    stream    tcp    nowait    root    /usr/sbin/tcpd    /usr/sbin/smbd

If you are indeed using xinetd, you will have to convert the
above into /etc/xinetd.conf format, and add it manually. See
/usr/share/doc/xinetd/README.Debian for more information.
Suggested entry (automatically converted using itox):

-----------------------------------------------------------

 * Starting Samba daemons                                                [ OK ]

sooya@sooya-ls50:~$


2. 환경 설정
 sudo gedit /etc/samba/smb.conf

[global] 및 [homes] 에 한글 관련 설정 추가
[global]
   dos charset = cp949
   display charset = UTF8
   unix charset = UTF8


# ... ... 제일 아래 부분에 아래 내용 추가 ... ...

# Home Directory 공유
[homes]
writable = yes

# 지정 Directory 공유
[공유이름]
comment = Project Folder
path=/공유디렉토리/위치
writable = yes

#   create mask = 0700              (??)
#   directory mask = 0700          (??)

3. Password 설정
sudo smbpasswd -userID

4. Samba 재시작
sudo /etc/init.d/samba restart
sooya@sooya-ls50:~$ sudo /etc/init.d/samba restart
[sudo] password for sooya:
 * Stopping Samba daemons                                                [ OK ]
 * Starting Samba daemons                                                [ OK ]
sooya@sooya-ls50:~$


윈도우에서 \\IP_ADDR\ 에 접속하면 project폴더가 보인다. ^^;;;

5. 윈도우 공유 폴더 마운트
1)  기본 명령 (User가 권한을 가지고 한글이 지원가능)
$ sudo mount -t cifs -o uid=<자신의uid>,gid=<자신의gid>,iocharset=utf8,codepage=cp949 //컴퓨터이름/공유이름 /공유할/디렉토리

- cf) ls -n 을 통하여 uid 및 gid 확인 가능함.

2) ID 및 PW 설정이 필요한 경우
$ sudo mount -t cifs -o username=<계정이름>,password=<암호>,uid=<자신의uid>,gid=<자신의gid>,iocharset=utf8,codepage=cp949 //컴퓨터이름/공유이름 /공유할/디렉토리

profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/28755/073/trackback
List of Articles
번호 제목 글쓴이 날짜sort 조회 수

리눅스 커널 버전 편하게 분석할 수 있는 사이트

/etc/syslog.conf 의 이해

파일시스템 생성 mount 및 포맷 ext3 ext4

X-Window 설치후 한글 깨짐발생

하드디스크 정보보기 smartctl

텍스트 모드 설정 유틸리티 Setup 없다 file

리눅스에서 윈도우 공유폴더 접근하기. samba

eAccelerator설치와 PHP 성능 향상 분석

rsync ssh 포트 말고 다른포트 사용법

phpmyadmin 에 로그인시 The configuration file now nee...

ssh 로 상대방 서버에 자동으로 접속하기

sulinux 1.0. 서버 패키지 리스트

snmpd 로그메세지 남기지 않기

iSCSI 설정하기

iscsi-target 설정 에러 모음

CentOS 5.4 Samba 서버 <-> 윈도우7에서 접근 문제

tomcat log 쌓이는 것 방지하기

[Linux_CentOS_5.5] 텍스트 모드(Text mode)에서 해상도 변경 file

CentOS 5.4 Crond 설치

libphp4.so: cannot restore segment prot after reloc: P...

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234