когда заливаю по samba в ftp крякозябры.
конфиги samba
Код: Выделить всё
Scholl-Server# cat smb.conf
[global]
workgroup = SCHOLL
netbios name = SCHOLL-SERVER
server string = SCHOLL-SERVER
security = share
os level = 265
local master = yes
preferred master = yes
interfaces = 10.10.0.250/24
domain master = no
domain logons = no
wins support = no
dos charset = CP866
unix charset = koi8-r
log file = /var/log/samba34/log.%m
kernel oplocks = no
fake oplocks = no
oplocks = no
level2 oplocks = no
max log size = 100
dns proxy = NO
load printers = no
printing = bsd
show add printer wizard = no
printcap name = /dev/null
disable spoolss = yes
smb passwd file = /usr/local/etc/samba34/smbpasswd
[Общее]
path = /STORAGE/Scholl/Other/
browseable = yes
writable = yes
guest ok = yes
read only = no
public = yes
create mask = 0664
directory mask = 0775
[Документы]
hosts allow = 10.10.0.100/32
path = /STORAGE/Scholl/
browseable = yes
writable = yes
guest ok = yes
read only = no
public = yes
create mask = 0664
directory mask = 0775
Код: Выделить всё
Scholl-Server# cat proftpd.conf
ServerName "ProFTPD ROOM of scholl server "
ServerType standalone
DefaultServer on
ScoreboardFile /var/run/proftpd/proftpd.scoreboard
TransferLog /var/log/proftpd/tranfer.log
ExtendedLog /var/log/proftpd/read.log read
ExtendedLog /var/log/proftpd/write.log write
ExtendedLog /var/log/proftpd/auth.log auth
Port 21
Umask 002
MaxInstances 30
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 300
CommandBufferSize 512
User nobody
Group nogroup
AllowOverwrite on
MaxConnectionRate 1
ShowSymlinks off
DenyFilter \*.*/
TransferRate APPE,RETR,STOR,STOU 1536
<IfModule mod_lang.c>
UseEncoding koi8-r cp1251
</IfModule>
<Limit SITE_CHMOD>
DenyAll
</Limit>
<Anonymous /STORAGE>
User nobody
Group nogroup
ListOptions "-lha"
PathDenyFilter "(\\.ftpaccess|\\.htaccess)$"
### We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous nobody
### Limit the maximum number of anonymous logins
MaxClients 30
AuthAliasOnly on
RequireValidShell no
HideUser root
### 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>
<Directory Scholl/*>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory Scholl/Other/*>
<Limit WRITE READ RMD>
AllowAll
</Limit>
</Directory>
<Directory Scholl/Arhive/*>
<Limit WRITE>
#DenyAll
AllowAll
</Limit>
</Directory>
<Directory Scholl/Programm/*>
<Limit WRITE>
DenyAll
#AllowAll
</Limit>
</Directory>
<Directory Work/*>
<limit WRITE>
AllowAll
</limit>
<limit DELETE RMD>
DenyAll
</limit>
</Directory>
</Anonymous>