Toon posts:

[proftpd] proftpd.conf - anonymous toegang werkt niet?

Pagina: 1
Acties:
  • 63 views sinds 30-01-2008

Verwijderd

Topicstarter
oke nu post ik hem goed want ik vrees dat ik er met de documentatie niet uit kom anderz had ik nl niet gepost :P.
Dit is de "Proftpd.conf" file die ik nu use :
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# This is the ProFTPD configuration file
# $Id: proftpd.conf,v 1.4 2002/12/13 10:33:25 dude Exp $

ServerName                      "ProFTPD server"
ServerIdent                     on "FTP Server ready."
ServerAdmin                     root@localhost
ServerType                      standalone
#ServerType                     inetd
DefaultServer                   on
AccessGrantMsg                  "User %u logged in."
#DisplayConnect                 /etc/ftpissue
#DisplayLogin                   /etc/ftpmotd
#DisplayGoAway                  /etc/ftpgoaway
DeferWelcome                    off

# Use this to excude users from the chroot
DefaultRoot                     ~ !adm

# Use pam to authenticate by default
AuthPAMAuthoritative            on

# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups                    off
UseReverseDNS                   off

# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# Default to show dot files in directory listings
LsDefaultOptions                "-a"

# See Configuration.html for these (here are the default values)
#MultilineRFC2228               off
#RootLogin                      off
#LoginPasswordPrompt            on
#MaxLoginAttempts               3
#MaxClientsPerHost              none
#AllowForeignAddress            off     # For FXP

# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart            on
AllowStoreRestart               on

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    20

# Set the user and group that the server normally runs at.
User                            nobody
Group                           nobody

# This is where we want to put the pid file
ScoreboardFile                  /var/run/proftpd.score

# Normally, we want users to do a few things.
<Global>
  AllowOverwrite                yes
  <Limit ALL SITE_CHMOD>
    AllowAll
  </Limit>
</Global>

# Define the log formats
LogFormat                       default "%h %l %u %t \"%r\" %s %b"
LogFormat                       auth    "%v [%P] %h %t \"%r\" %s"

# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
  # Uncomment the following line to allow anonymous access
  #RequireValidShell            off
  User                          ftp
  Group                         ftp
  AccessGrantMsg                "Anonymous login ok, restrictions apply."

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous 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 "Sorry, max %m users -- try again later"

  # Put the user into /pub right after login
  DefaultChdir                  /pub

  # We want 'welcome.msg' displayed at login, '.message' displayed in
  # each newly chdired directory and tell users to read README* files.
  DisplayLogin                  /welcome.msg
  DisplayFirstChdir             .message
  DisplayReadme                 README*

  # Some more cosmetic and not vital stuff
  DirFakeUser                   on ftpadm
  DirFakeGroup                  on ftpadm

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE SITE_CHMOD>
    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>
  </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>


Nu zou ik graag en "Upload" en een "Download" directory hebben voor "anoniem" inlogen.

Nu heb ik op de "http://www.proftpd.net" site onder het kopje "Example files" en daar een "anonymous" config file vandaan gejat.

Deze dus: "http://proftpd.linux.co.uk/docs/configs/anonymous.conf"

Op het moment dat ik die toevoeg en "Proftpd" probeer te restarten krijg ik deze error:
code:
1
2
Shutting down proftpd:                                     [FAILED]
Starting proftpd:                                                 [  OK  ]


Kijk ik dan in de "/var/log/messages" kijk zie ik dit staan:

code:
1
2
Feb 12 12:16:12 server proftpd: server - error: unable to open scoreboard: No such file or directory
Feb 12 12:16:12 server proftpd: proftpd startup succeeded


Nou ik zoeken wat die error inhoud, en dan vind ik "heb je een andere server runnen op poort 21" nou ik niet want er draaid verder nix op de server.

Wat overige informatie:
code:
1
2
Redhat 8.0
ProFTP 1.2.7


Dus vandaar deze vreselijke misdaad een repost van een gesloten topic sry maar ik kom er echt neit meer uit

  • Wilke
  • Registratie: December 2000
  • Laatst online: 22:17
Mja, en heb je ook doorgelezen wat je hebt toegevoegd, of gewoon maar simpelweg gekopieerd, en dan maar hopen dat het werkt? Je geeft namelijk zelf het antwoord al in je post:
# Uncomment the following line to allow anonymous access
#RequireValidShell off
En volgens mij zie ik daar bij jou dus nog steeds die regel doodleuk uitgecommentarieerd. Je moet wel *lezen* wat je aan het doen bent he!

Trouwens, dat je proftpd niet kunt afsluiten via het startscript heeft hier weinig mee te maken denk ik (is wel slordig trouwens, maar ok). Als je niet kunt connecten moet je even kijken of proftpd wel draait, en het anders nogmaals (desnoods met de hand) starten.

P.S. ik verander je topictitel een beetje, zodat anderen ook zien waar het over gaat

Verwijderd

Topicstarter
Nou het probleem is niet dat het inlogen niet lukt met deze file kan ik inlogen maar verander ik de file door een example van http://www.proftpd.net dan werkt het niet meer dan start proftd ook niet meer.
ook niet handmatig sry :<

  • Wilke
  • Registratie: December 2000
  • Laatst online: 22:17
Verwijderd schreef op 12 February 2003 @ 12:30:
Nou het probleem is niet dat het inlogen niet lukt met deze file kan ik inlogen maar verander ik de file door een example van http://www.proftpd.net dan werkt het niet meer dan start proftd ook niet meer.


Je vervangt hoop ik toch niet je complete configfile door eentje die daar staat? Je kijkt gewoon naar de opties die je nodig hebt en neemt die dan over...in de voorbeeld-files staan vast (fictieve) hostnames, verkeerde paden, etc. , ik neem aan dat je dat wel gecheckt hebt enzo?

Verwijderd

Dan zul je toch maar eens wat beter je config file door moeten spitten. De scoreboard melding staat netjes als optie in je config file. Check dus of die file bestaat en of de file de goede rechten/owner/group heeft.

En neem het is niet zo dat als je zo maar een configfile ergens vandaan pakt dat dat meteen werkt. Daarvoor moet je dan toch echt die file eens kritisch doornemen en kijken waar er verschillen zijn met jouw configuratie en dat desnoods aanpassen. En als je daar niet uitkomt dan pak je er een manual of HOWTO bij.

Deze topic is op gespannen voet met de volgende passage uit [rml]-=[ Nieuw in NOS? Eerst dit lezen! GEEN HELPDESK! ]=-[/rml]

• Enig blijk van gezond verstand en een algemene kennis van het OS waar je mee bezig bent worden wel verwacht. Dit betekent dat als je 'newbie' bent met Linux, je gewoon eerst de newbie-guides moet lezen en zelf aan het proberen slaan! Zie links in de posts hieronder en in de NOS FAQ. Sta niet verbaasd als 'newbie' vragen gesloten worden, er staat echt veel informatie in die handleidingen

Verwijderd

Topicstarter
Sry maar scoreboard staat in mijn originele config (die krijg je als je proftpd installeerd) in de nieuwe staat hij nit moet ik hem dan toevoegen?

Verwijderd

Topicstarter
Jah ik snap wat je bedoeld, maar het probleem is ik ben nog een newbie ik ben al blij dat ik zo ver ben gekomen. heb nl al een SMB pdc, mail server, en nu zou ik graag een http server met een ftp upload maar het wil me gewoon niet lukken vrees ik. :'(
maar ik denk zelf dat het probleem hier zit :

code:
1
2
3
4
5
6
7
8
9
10
11
12
  # 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>
  </Directory>

Verwijderd

Topicstarter
code:
1
2
3
4
5
6
7
8
9
10
11
  # An upload directory that allows storing files but not retrieving
  # or creating directories.
  <Directory uploads/*>
    <Limit READ>
      DenyAll
    </Limit>

    <Limit STOR>
      AllowAll
    </Limit>
  </Directory>

dit heb ik ervan gemaakt nu kan ik uploaden !!!!!!!!!! ty all

Verwijderd

Mooi dat het gelukt is :) Maar het is niet de bedoeling dat je drie keer snel onder elkaar een post plaatst , dat kan namelijk als kicken worden uitgelegd. En dat wordt weer niet op prijs gesteld.
Maar het werkt nu dus oke. Maar ik zet deze wel op slot wegens bovengenoemde reden.
Pagina: 1

Dit topic is gesloten.