Создал юзера в системе юзер ftp и группа ftp
c шелом /sbin/nologinнастройки proftpd.conf (часть:))
# for root
DefaultRoot / wheel
#anonim
DefaultRoot /ftp/ users
#for users
DefaultRoot /ftp/users/ specialusers#logs
SyslogLevel notice
UseReverseDNS off
TransferLog /var/log/proftpd-tranfer.log
SystemLog /var/log/proftpd-error.log
#ExtendedLog /var/log/proftpd-extended.log read,write# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory># A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
#########################################################################
# #
# Uncomment lines with only one # to allow basic anonymous access #
# #
#########################################################################<Anonymous ~ftp>
User ftp
Group ftp### We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp### Limit the maximum number of anonymous logins
MaxClients 10### We want 'welcome.msg' displayed at login, and '.message' displayed
### in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message### Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE>
# DenyAll
# </Limit>
</Anonymous>пытаюсь зайти анонимно не выходит смотрю логи:
Jan 25 17:23:50 joker.gateway.com proftpd[511] joker.gateway.com (192.120.6.35[192.120.6.35]): USER ftp (Login failed): Invalid shell: '/sbin/nologin'Как быть ? Что не так ?
>Создал юзера в системе юзер ftp и группа ftp
>c шелом /sbin/nologin
>
>настройки proftpd.conf (часть:))
># for root
>DefaultRoot / wheel
>#anonim
>DefaultRoot /ftp/ users
>#for users
>DefaultRoot /ftp/users/ specialusers
>
>#logs
>SyslogLevel notice
>UseReverseDNS off
>TransferLog /var/log/proftpd-tranfer.log
>SystemLog /var/log/proftpd-error.log
>#ExtendedLog /var/log/proftpd-extended.log read,write
>
># Normally, we want files to be overwriteable.
><Directory />
> AllowOverwrite
> on
></Directory>
>
># A basic anonymous configuration, no upload directories. If you do
>not
># want anonymous users, simply delete this entire <Anonymous> section.
>#########################################################################
>#
>
>
>
>
>
> #
># Uncomment lines with only one # to allow basic anonymous access
> #
>#
>
>
>
>
>
> #
>#########################################################################
>
><Anonymous ~ftp>
> User
>
> ftp
> Group
>
> ftp
>
> ### We want clients to be able to login with
>"anonymous" as well as "ftp"
> UserAlias
>
>anonymous ftp
>
> ### Limit the maximum number of anonymous logins
> MaxClients
> 10
>
>
> ### We want 'welcome.msg' displayed at login, and '.message' displayed
>
> ### in each newly chdired directory.
> DisplayLogin
> welcome.msg
> DisplayFirstChdir
> .message
>
> ### Limit WRITE everywhere in the anonymous chroot
> # <Limit WRITE>
> # DenyAll
> # </Limit>
></Anonymous>
>
>пытаюсь зайти анонимно не выходит смотрю логи:
>Jan 25 17:23:50 joker.gateway.com proftpd[511] joker.gateway.com (192.120.6.35[192.120.6.35]): USER ftp (Login failed): Invalid
>shell: '/sbin/nologin'
>
> Как быть ? Что не так ?http://unix1.jinr.ru/~lavr/local/proftpd.html
А если в двух словах - добавь строку /sbin/nologin в /etc/shells
:)
Еще в конфиге proftpd есть опция, отключающая проверку валидности шелла. Не помню точно как она называется...