리눅스 분류
rsync 에러
작성자 정보
- 박카스 작성
- 작성일
컨텐츠 정보
- 1,776 조회
- 0 추천
- 목록
본문
서버쪽
/etc/rsyncd.conf
[test]
path = /home/test
comment = test
uid = nobody
gid = nobody
use chroot = yes
read only = yes
hosts allow = xxx.xxx.xxx.2
max connections = 3
timeout = 600
-------------------------------------
/etc/xinetd.d/rsync
# default: off
# description: The rsync server is a good addition to an ftp server, as it
# allows crc checksumming etc.
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
-----------------------------------------
# nmap localhost
873/tcp open rsync
위와 같이 설정한후 클라이언트에서 아래와 같이하면 에러가 출력됩니다. :를 한개만 하고 하면
패스워드를 물어보고 입력하면 그다음에는 똑같은 에러가 출력됩니다. 틀린것이 없는 것 같은데..
에러가 발생되는군요.. 휴. 도저히 이유를 모르겠네요.. 혹시 아시는 분들 부탁드립니다.
참고로 양쪽다 페도라 코어 4이고 기본으로 설치된 rsync를 사용했습니다.
# rsync -avz xxx.xxx.xxx.1::test /home/test
@ERROR: chroot failed
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)
/etc/rsyncd.conf
[test]
path = /home/test
comment = test
uid = nobody
gid = nobody
use chroot = yes
read only = yes
hosts allow = xxx.xxx.xxx.2
max connections = 3
timeout = 600
-------------------------------------
/etc/xinetd.d/rsync
# default: off
# description: The rsync server is a good addition to an ftp server, as it
# allows crc checksumming etc.
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
-----------------------------------------
# nmap localhost
873/tcp open rsync
위와 같이 설정한후 클라이언트에서 아래와 같이하면 에러가 출력됩니다. :를 한개만 하고 하면
패스워드를 물어보고 입력하면 그다음에는 똑같은 에러가 출력됩니다. 틀린것이 없는 것 같은데..
에러가 발생되는군요.. 휴. 도저히 이유를 모르겠네요.. 혹시 아시는 분들 부탁드립니다.
참고로 양쪽다 페도라 코어 4이고 기본으로 설치된 rsync를 사용했습니다.
# rsync -avz xxx.xxx.xxx.1::test /home/test
@ERROR: chroot failed
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)
관련자료
-
이전
-
다음
댓글 0
등록된 댓글이 없습니다.