[samba 서버]
– ubuntu 11.10에서는 기본적으로 설치가 되어 있다.
– 실행되고 있는 지를 알려면 다음과 같이 명령을 하면 된다.
[shell]~$ ps aux | grep smbd[/shell]
– 따라서 설정만 해주면 된다. 다음은 smbd를 설정하는 과정이다.(참고 :FALinux Forum)
<목표>
architect 아이디를 사용하는 사용자에 대해,
/home/architect 디렉토리를 Archives라는 이름으로 사용하도록
[shell]~$ sudo vi /etc/samba/smb.conf[/shell]
[vim][global]
# 윈도우 네트워크 환경의 작업 그룹 이름을 입력했습니다.
workgroup = Architecture
dos charset = CP949
display charset = UTF8
unix charset = UTF8
; load printers = yes
printing = lpmg
# 윈도우 탐색기에 출력할 컴퓨터 이름입니다.
server string = File Server
printcap name = /etc/printcap
cups options = raw
log file = /var/log/samba/%m.log
max log size = 50
# 사용자 계정으로 설정합니다.
security = USER
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
password server = None
username map = /etc/samba/smbusers
; idmap uid = 16777216-33554431
; idmap gid = 16777216-33554431
; template shell = /bin/false
; guest ok = no
; winbind use default domain = no
# architect 유저에 대한 삼바 공유 폴더 설정입니다.
[Archives]
comment = architect’s archives
path = /home/architect
writeable = yes
guest ok = no
create mask = 0644
directory mask = 0755
[/vim]
samba 사용자를 등록하기
[shell]~$ sudo smbpasswd -a architect
New SMB password:
Retype new SMB password:
startsmbfilepwent_internal: file /etc/samba/smbpasswd did not exist.
File successfully created.
Added user architect.
~$[/shell]
samba 재시작하기
[shell]~$ sudo service smbd restart[/shell]
[FTP 서버]
– ubuntu 11.10에서는 기본적으로 설치가 되어 있지 않다.
– 다음은 vsftp를 설치하고 설정하는 과정이다.(출처 : Help Desk Screeds)
– 설치하기
[shell]sudo apt-get install vsftpd[/shell]
– 설정 파일 편집하기
[shell]~$ sudo vi /etc/vsftpd.conf[/shell]
– 편집내용
[vim]#write_enable=YES
위 내용을 찾아 아래와 같이 주석을 제거한다.
write_enable=YES
아무나 접속하지 못하게 하려면 아래 내용은 그대로 둔다.
anonymous_enable=NO[/vim]
– vsftpd를 재시작하기
[shell]~$ sudo service vsftpd restart[/shell]