Skip to content

우분투에 Samba 를 설치하자

조회 수 19195 추천 수 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/69c/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
147 grep 옵션~! ADMINPLAY 2010-02-17 22183
146 ethtool 사용법 ADMINPLAY 2009-06-04 22199
145 vim 편집기 색상변경 ADMINPLAY 2009-05-17 22204
144 콘솔에 남는 메세지로그파일로 남기기 ADMINPLAY 2009-07-19 22229
143 FreeBSD CPU 개수 확인 등.(mptable, sysctl) ADMINPLAY 2012-01-16 22277
142 리눅스에서 일정기간 이상된 파일 삭제하기 ADMINPLAY 2009-07-02 22312
141 rsync 에러 ADMINPLAY 2009-05-17 22345
140 ssh, ftp 접근 딜레이 현상 발생시 조치방법 ADMINPLAY 2009-05-28 22426
139 보안서버구축시 아파치 컴파일 중 "can not be used when ... ADMINPLAY 2009-07-04 22440
138 특수문자 정규 표현식 ADMINPLAY 2010-01-27 22495
137 CentOS 5.0~5.1 :: 커널 2.6.17~2.6.24.1 vmsplice 커널버... ADMINPLAY 2009-09-28 22529
136 squid.conf ADMINPLAY 2012-03-07 22738
135 리눅스에서 하드웨어 스팩 보기 dmidecode ADMINPLAY 2009-05-28 22796
134 젠투리눅스 설치기록 ADMINPLAY 2010-04-17 22848
133 crontab 예약실행 file ADMINPLAY 2009-09-22 22863
132 RPM 사용법 정리 ADMINPLAY 2009-12-10 22907
131 Linux 소켓 접속 개수 늘리기 ADMINPLAY 2009-06-17 22954
130 LVS-NAT 구축(Linux Virtual Server) file ADMINPLAY 2009-11-04 22955
129 rpmfind (rpm패키지 검색사이트) ADMINPLAY 2009-06-01 23040
128 CentOS 4.x 에서 yum 실패 대처 ADMINPLAY 2012-06-13 23101

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234