질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

fedora 4 rsync Error [@ERROR: chdir failed]

작성자 정보

  • hongtting 작성
  • 작성일

컨텐츠 정보

본문

두대의 리눅스(Fedora 4) 서버로 Rsync 하려고 합니다.

두 서버에 rsync 가 defult 로 제공되는 버젼  rsync-2.6.4-3  버젼으로 설치하였습니다.

그리고  xinetd 를 start 시켰습니다.

1번 리눅스 서버 : ***.***.***.1

2번 리눅스 서버 : ***.***.***.2

1번, 2번 서버
/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
}
 ------------------------------------------------------------------------------------

1번 서버 /etc/rsyncd.conf
--------------------------------------------------------------------------------------
[test]
path = /home/test
comment = test
uid = nobody
gid = nobody
use chroot = yes
read only = yes
hosts allow = ***.***.***.2
max connections = 3
timeout = 600
------------------------------------------------------------------------------------

2번 서버 /etc/rsyncd.conf
--------------------------------------------------------------------------------------
[test]
path = /home/test
comment = test
uid = nobody
gid = nobody
use chroot = yes
read only = yes
hosts allow = ***.***.***.1
max connections = 3
timeout = 600
------------------------------------------------------------------------------------

그리고 아래 내용중에 권한 문제 인것 같다라는 말을 보고
1,2번 서버의   /home/test  퍼미션을 777 로 아래와 같이 해주었습니다.

drwxrwxrwx  2 test test 4096 Jul 29 12:41 test

혹시나 해서 각 서버에서 아래와 같이 실행도 하였습니다.

------ 2번 서버에서 시도
[root@test home]# telnet ***.***.***.1 873
Trying ***.***.***.1...
Connected to ***.***.***.1(***.***.***.1).
Escape character is '^]'.
@RSYNCD: 29

------ 1번 서버에서 시도
[root@test home]# telnet ***.***.***.2 873
Trying ***.***.***.2...
Connected to ***.***.***.2(***.***.***.2).
Escape character is '^]'.
@RSYNCD: 29

위와 같은 과정을 거친후 실행 하였습니다.

---- 1번 서버에서 시도
## > rsync -avz ***.***.***.2::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)


---- 2번 서버에서 시도
## > rsync -avz ***.***.***.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
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,132 명
  • 현재 강좌수 :  36,167 개
  • 현재 접속자 :  401 명