[ProFTPd] dir rechten bij aanmaken fout, argh..

Pagina: 1
Acties:

  • The Source
  • Registratie: April 2000
  • Laatst online: 23:00
Mijn ftpserver draaide een lange tijd goed. Nu gaat het de laatste tijd steeds vaker fout bij het aanmaken van dir's en uploaden van files. Daarbij staan de rechten niet goed. Dus in een ftp client zie je dit:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
200 PORT command successful.
    Opening data connection IP: 217.x.x.x PORT: 4895.
    LIST -aL
150 Opening ASCII mode data connection for file list.
    1107 bytes received successful. (1.08 KBps) (00:00:01).
226 Transfer complete.
    MKD /public_html/construction/nieuwsbrief
257 "/public_html/construction/nieuwsbrief" - Directory successfully created.
    CWD nieuwsbrief
250 CWD command successful.
    PWD
257 "/public_html/construction/nieuwsbrief" is current directory.
    PORT 217,x,x,x,19,33
200 PORT command successful.
    Opening data connection IP: 217.x.x.x PORT: 4897.
    STOR nieuwletter-03.html
550 nieuwletter-03.html: Permission denied
    CWD /public_html/construction
250 CWD command successful.
    PWD
257 "/public_html/construction" is current directory.
    PORT 217,x,x,x,19,35
200 PORT command successful.
    Opening data connection IP: 217.x.x.x PORT: 4899.
    LIST -aL
150 Opening ASCII mode data connection for file list.
    1175 bytes received successful. (1.15 KBps) (00:00:01).
226 Transfer complete.

Als ik dan ga kijken welke rechten de dir public_html/construction/nieuwsbrief heeft dan zie ik:
code:
1
d--xr--rwx    2 domein  domein  4096 Dec  8 14:17 nieuwsbrief

Dit is dus duidelijk fout. Dit mag zoiets als 755 worden :)

Aan mijn proftpd.conf is eigenlijk niets verandert dus ik betwijfel of het daaraan kan liggen. Maar hier voor de zekerheid:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# ProFTPd.conf

ServerName              "domein FTP server"
ServerType standalone
#DefaultServer          on

Port                    21
DeferWelcome              off
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 3600

MaxInstances 30
User                    nobody
Group                  nobody

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"

<Global>
Umask                  022
MaxClients 10 "Sorry, max nummer of connections reached"
MaxLoginAttempts 2
ServerIdent off
RequireValidShell off
DeferWelcome on
AllowOverwrite on
AllowRetrieveRestart on
AllowStoreRestart on
ShowSymlinks on
ShowDotFiles on
AccessDenyMsg Failed login
AccessGrantMsg Welcome!
AllowChmod on
RootLogin off
</Global>

<VirtualHost ftp.domein.nl>
  ServerAdmin            webmaster@domein.nl
ServerName "FTP Server"
  DefaultRoot            ~
  ExtendedLog            /var/log/ftpd.log

  User                domein
  Group              domein
Port 21
</VirtualHost>
UseReverseDNS on
TimesGMT on

Weet iemand wat ik fout doen, of waar ik de fout moet gaan zoeken?

  • The Source
  • Registratie: April 2000
  • Laatst online: 23:00
Probleem opgelost :)

Voor diegene die hetzelfde probleem hebben. Ik draaide eerst ProFTPd 1.2.4. Daar schijnt dus een bug in te zitten waardoor het verkeerd gaat op mijn systeem. Met een oudere versie (zowel met 1.2.2 en 1.2.3 getest) gaat het op mijn systeem met dezelfde config file wel goed.