Proftpd 재시작시 에러납니다.
작성자 정보
- 김인혜 작성
- 작성일
컨텐츠 정보
- 1,809 조회
- 1 댓글
- 0 추천
- 목록
본문
Shutting down proftpd: [실패]
Starting proftpd: - warning: AuthPAMAuthoritative is deprecated
- getaddrinfo 'localhost.localdomain' error: Name or service not known
- warning: unable to determine IP address of 'localhost.localdomain'
- error: no valid servers configured
- Fatal: error processing configuration file '/etc/proftpd.conf'
[실패]
- proftpd.conf 설정
ServerName "Ftp Default Server"
ServerType standalone
DefaultServer on
DisplayLogin .ftpmotd
DisplayQuit .ftpgoaway
DeferWelcome off
RootLogin On
DefaultRoot ~
DefaultChdir /
AuthPAMAuthoritative off
IdentLookups off
UseReverseDNS off
TimeoutIdle 120
Port 21
Umask 022
MaxClientsPerHost 10
AllowRetrieveRestart on
AllowStoreRestart on
ScoreboardFile /var/proftpd.pid
MaxInstances 30
User nobody
Group nobody
<Global>
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
</Global>
# Limit WRITE everywhere in the anonymous chroot, allow READ everywhere
<Limit READ>
AllowAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
#allow login from all ip address
<Limit LOGIN>
Order Deny,Allow
Allow from all
</Limit>
# Limit the maximum number of anonymous logins
MaxClients 100 "Sorry, max %m users -- try again later"
# Logging options
TransferLog /var/log/proftpd/xferlog.regacy
# Some logging formats
LogFormat default "%h %l %u %t "%r" %s %b"
LogFormat auth "%v [%P] %h %t "%r" %s"
LogFormat write "%h %l %u %t "%r" %s %b"
# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
User ftp
Group ftp
UserAlias anonymous ftp
DirFakeUser on ftpadm
DirFakeGroup on ftpadm
AccessGrantMsg "Anonymous login ok, restrictions apply."
# Put the user into / right after login
DefaultChdir /
DisplayLogin /.ftpmotd
DisplayQuit /.ftpgoaway
DisplayReadme README*
# Limit WRITE everywhere in the anonymous chroot, allow READ everywhere
<Limit READ>
AllowAll
</Limit>
<Limit STOR>
DenyAll
</Limit>
# An upload directory that allows storing files but not retrieving
# or creating directories.
#<Directory uploads>
#AllowOverwrite no
#<Limit READ>
# DenyAll
#</Limit>
#<Limit STOR>
# AllowAll
#</Limit>
#<Limit CWD>
#Order Deny,Allow
#Allow from all
#</Limit>
#</Directory>
# Don't write anonymous accesses to the system wtmp file (good idea!)
WtmpLog off
# Loggin for the anonymous transfers
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
</Anonymous>
무엇이 문제일까요?
고수님들 부탁합니다.*^^*
관련자료
-
이전
-
다음
김종성님의 댓글
- 김종성
- 작성일
127.0.0.1 localhost.localdomain localhost
이렇게 내용이 한줄만 있지 않나요?
서버의 hostname과 동일하게 IP를 지정해서 내용을 추가하시면 될겁니다.
예를 들어 hostname 이 test.com 이고 ip가 123.123.123.123 이라면
123.123.123.123 test.com test
이런식으로 한줄 추가해 주시면 됩니다.
그리고
AuthPAMAuthoritative off <== 이 설정은 주석 처리해주세요.