2011-08-05 2 views
0

순수-ftpd를 자신의 인증 모듈을 만들 수있는 옵션을 가지고 명령 :그러나 그것은 그것을 얻기 위해 런타임 작업이 필요,

Now, we have to run pure-authd and pure-ftpd, to connect them through a 
local socket and to tell pure-ftpd to use our external authentication module: 

pure-authd -s /var/run/ftpd.sock -r /usr/bin/ftp-auth-handler & 
pure-ftpd -lextauth:/var/run/ftpd.sock & 

That's all. Now, we can only log in as 'john', as all FTP authentication is 
done by the shell script. 

구성에서이 두 명령을 수행 할 수있는 방법이 있습니까?

답변

1

어제 같은 문제가 있었고 다음과 같이 해결했습니다 : "pure-authd -s /var/run/ftpd.sock -r/usr/bin/ftp" -auth-handler & "을 설정 파일에 넣어서 순수 -ftpd로 시작/중지하도록 pure-ftpd-wrapper를 편집하십시오.

매개 변수"-lextauth : /var/run/ftpd.sock " (예 : /var/run/ftpd.sock) 소켓에 대한 경로 (예 : /var/run/ftpd.sock) 을 사용하여/etc/pure-ftpd/conf/ExtAuth 파일을 만든 다음/etc/pure-ftpd/ln -s/etc/pure-ftpd/auth/ExtAuth/etc/pure-ftpd/conf/ExtAuth

의 conf-extAuth 파일에 대해 ExtAuth라는 심볼릭 링크를 인증하고 생성합니다. 당신이 알고 싶어하지만, 적어도 당신이 ... 시작/순수-FTPD를 중지있는 init.d 스크립트를 사용할 수 있습니다 정확히하지 6,

(및 시작 순수 authd 자신을) '

0

내가 돈 t 그러나 당신이 /etc/inittab에서 자동 순수 authd를 실행할 수 있습니다, 당신은 구성에서이 작업을 수행 할 수 있다고 생각 :

PAU:23:respawn:/usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/bin/ftp-auth-handler 

/etc/inittab 실행 init q을 저장 한 후에는 다시로드 할 수 있습니다.

관련 문제