2. Попробуйте в Global убрать путь:
Код: Выделить всё
<Global>
<Limit LOGIN>
Order allow,deny
Allow from all
Deny from all
</Limit>
</Global>
Код: Выделить всё
<Global>
<Limit LOGIN>
Order allow,deny
Allow from all
Deny from all
</Limit>
</Global>
Подскажите у меня такой конфигРоман Торопов писал(а):1. У вас каталог /home с маленькой буквы или большой ?
2. Попробуйте в Global убрать путь:Код: Выделить всё
<Global> <Limit LOGIN> Order allow,deny Allow from all Deny from all </Limit> </Global>
Код: Выделить всё
ServerIdent off
ServerName vik.datasvit.ks.ua
ServerAdmin viktor6@ukr.net
ServerType standalone
DefaultServer on
AllowStoreRestart on
Port 21
Umask 002
MaxInstances 3000
User root
Group root
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
# DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit LOGIN>
Order allow,deny
Allow from all
Deny from all
</Limit>
PersistentPasswd off
# Доманний каталог для авторизированных пользователей с глобальными правами
# DefaultRoot /var/www/foo foo
DefaultRoot /home
<Global>
<Limit LOGIN>
Order allow,deny
Allow from all
Deny from all
</Limit>
</Global>
RootLogin off
AllowForeignAddress on
AllowRetrieveRestart on
DirFakeUser off nobody
LogFormat auth "%v [%P] %h %t "
Extendedlog /var/log/proftpd/ftp.log
UseReverseDNS off
LogFormat default "%h %l %u %t "
SystemLog /var/log/proftpd/proftpd.log
DisplayConnect /etc/banner-proftpd
DirFakeGroup off nobody
DeleteAbortedStores off
IdentLookups off
DeferWelcome on
TimesGMT off
TransferLog /var/log/proftpd/xferlog
AccessGrantMsg " -- Guest access granted for %u --"
ServerIdent off
LogFormat write "%h %l %u %t "
AccessDenyMsg " !-!! ACCESS DENY !!-! SEEMS YOU HAVE NO RIGHT THERE !!"
<Anonymous /var/www/ftp>
User ftp
UserAlias anonymous ftp
Group ftp
</Anonymous>
viktor6 писал(а):как мне создать пользователя чтобы он имел доступ к определенной папке.Код: Выделить всё
<Global> <Limit LOGIN> Order allow,deny Allow from all Deny from all </Limit> </Global>
Код: Выделить всё
<Global>
<Limit LOGIN>
AllowUser user1,user2,user3 #список пользователей имеющих не глобальные права
Order allow,deny
Allow from all
Deny from all
</Limit>
# -----начало конфига для не глобального пользователя user1 - имеет доступ к указанному каталогу только для чтения ------
<Anonymous /mnt/ftp/pub/user1>
User user1
Group users
AnonRequirePassword on
MaxClients 300 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit WRITE>
DenyAll
</Limit>
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
</Anonymous>
# -----конец конфига для не глобального пользователя user1 - имеет доступ к указанному каталогу только для чтения ------
# -----начало конфига для не глобального пользователя user2 - имеет доступ к указанному каталогу с полным доступом, но без права перезаписи ------
<Anonymous /mnt/ftp/pub/user2>
User user2
Group users
AnonRequirePassword on
MaxClients 300 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit WRITE>
AllowAll
</Limit>
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
</Anonymous>
# -----конец конфига для не глобального пользователя user2 - имеет доступ к указанному каталогу с полным доступом, но без права перезаписи ------
# -----начало конфига для не глобального пользователя user3 - имеет доступ к указанному каталогу с полным доступом, с правом перезаписи файлов ---
<Anonymous /mnt/ftp/pub/user3>
User user3
Group users
AnonRequirePassword on
MaxClients 300 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite on
<Limit WRITE>
AllowAll
</Limit>
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
</Anonymous>
# -----конец конфига для не глобального пользователя user3 - имеет доступ к указанному каталогу с полным доступом, с правом перезаписи файлов---
</Global>
по конфигу, user3 - имеет полный доступ.viktor6 писал(а):блин когда я начну нормально сделать запрос Роман Торопов спасибо но мне холочь чуть другое чтобы user1 имел полные права своей папки тобиш чтобы мог удалять и заливать файлы
Код: Выделить всё
<Global>
<Limit LOGIN>
AllowUser user3
Order allow,deny
Allow from all
Deny from all
</Limit>
<Anonymous /mnt/ftp/pub/user3>
User user3
Group users
AnonRequirePassword on
MaxClients 300 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite on
<Limit WRITE>
AllowAll
</Limit>
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
</Anonymous>
</Global>