| 1941 번 글의 답장글: Re: proftpd 에서 |
| 글쓴이: 산이
[홈페이지]
|
글쓴날: 2004년 02월 24일 21:27:34 화(저녁) |
조회: 915 |
[소영]님이 남기신 글:
>계정 아이디가 piano 인 사람은
>/usr/local/apache/htdocs/piano 로
>계정 아이디가 book 인 사람은
>/usr/local/apache/htdocs/book 로
>ftp 접속시 연결되게 하고 싶습니다.
>
>아래와 같이 하였는데 어디가 잘못된것인지
안됩니다.
>초보자라 모르는게 너무 많아서...
>고수님들 잘 부탁드립니다.
>
>
>proftpd.conf 파일 내용..
>///////////////////////////////
>ServerName "ProFTPD Default Installation"
>ServerType inetd
>DefaultServer on
>DefaultRoot ~
>
>Port 21
>Umask 022
>
>MaxInstances 10
>
>User nobody
>Group nobody
>
><Directory /*>
> AllowOverwrite on
></Directory>
>
><Anonymous ~ftp>
> User ftp
> Group ftp
> UserAlias anonymous ftp
>
> MaxClients 10
>
> DisplayLogin welcome.msg
> DisplayFirstChdir .message
>
> <Limit WRITE>
> DenyAll
> </Limit>
>
></Anonymous>
><VirtualHost 192.168.1.13>
> ServerName "www.piano.com"
>
> DeferWelcome on
>
<Limit LOGIN>
AlowwAll
</Limit>
그리고 사용자 홈디렉토리를 각각 지정해주면 됩니다.
즉 /etc/passwd 파일에서 해당 사용자의 홈디렉토리를
원하는 위치로 지정해주면 됩니다.
>
> <Anonymous /home/ftp>
> User ftp
> Group ftp
> UserAlias anonymous ftp
> AllowOverwrite yes
>
> <Limit LOGIN>
> AllowAll
> </Limit>
>
> <Limit WRITE>
> AllowAll
> </Limit>
>
> <Directory incoming>
> <Limit WRITE>
> AllowAll
> </Limit>
> </Directory>
> </Anonymous>
> <Directory /usr/local/apache/htdocs/piano>
> <Limit ALL>
> AllowUser piano
> DenyAll
> </Limit>
> </Directory>
> <Directory /usr/local/apache/htdocs/book>
> <Limit ALL>
> AllowUser book
> DenyAll
> </Limit>
> </Directory>
></VirtualHost>
========================================
|
이전글 : proftpd 에서
다음글 : 정말로 감사합니다....내용무
|
from 61.254.74.228
JS(Redhands)Board 0.4 +@
|