[Proftpd] Homedir van Anonymous instellen

Pagina: 1
Acties:

  • saviour
  • Registratie: Juli 2000
  • Niet online
Hey iedereen,

Ik zie door de bomen het bos niet meer :{
Ik heb Proftpd geïnstalleerd, het werkt prima, iedere user komt terecht in zijn homedir.

Nu heb ik een user aangemaakt 'ftp' met uiteraard als homedir /home/ftp

Ik kan anonymous inloggen:
<Anonymous /home/ftp>

# Allow logins if they are disabled above.
<Limit LOGIN>
AllowAll
</Limit>

# Maximum clients with message
MaxClients 5 "Sorry, max %m users -- try again later"

User ftp
Group ftp
UserAlias anonymous ftp

# We want clients to be able to login with "anonymous" as well as "ftp"

#Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>

# An upload directory that allows storing files but not retrieving
# or creating directories.
<Directory /home/ftp>
<Limit READ>
AllowAll
</Limit>

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

</Anonymous>
Maar wat ik ook doe, hij komt niet onder /home/ftp ingelogd!

Ik heb hierover niets kunnen vinden in de search en ook niet op proftpd.net

Pls help ;(

  • Roel
  • Registratie: Februari 2000
  • Laatst online: 05-08 07:47

Roel

screen -x addict

/etc/passwd staat goed ? (Dus naar /home/ftp) ?

In /etc/ftpusers de username ftp weghalen is ook slim.. :)

Resistance is futile (If < 1 Ohm)


  • saviour
  • Registratie: Juli 2000
  • Niet online
Vaag!

Mijn /etc/passwd stond gewoon goed, maar er stond ook :/bin.bash achter.. dus ik dat eerst weggehaald waarna ik niet meer anon kon inloggen.

Dus zette ik het weer terug en nu werkt het!

Ik heb trouwens geen /etc/ftpusers..

Dankjewel :)
Nu nog zien dat de permissies goed komen te staan, ik mag nml niet uploaden :{

edit: In de homedir mag anon nu uploaden :) Alleen nog niet in subdirs.

edit2: Alles werkt nu naar behoren :D

  • Roel
  • Registratie: Februari 2000
  • Laatst online: 05-08 07:47

Roel

screen -x addict

En alweer verlaat een tevreden klant het pand :)

* Roel is 2 /dev/bed

Resistance is futile (If < 1 Ohm)


  • saviour
  • Registratie: Juli 2000
  • Niet online
Op zondag 20 januari 2002 04:21 schreef Roel het volgende:
En alweer verlaat een tevreden klant het pand :)

* Roel is 2 /dev/bed
Slaap lekker :)
Ik ga zo ook maar eens.. ben al de hele dag aan het spelen in Debian :Z

  • Roel
  • Registratie: Februari 2000
  • Laatst online: 05-08 07:47

Roel

screen -x addict

Thanx ;)

Ben al de hele avond aan het kloten met X11 over het netwerk..

Wel leuk een 486 met xmms erop die m'n mp3's afspeeld terwijl het geluid uit m'n athlon komt :P

Resistance is futile (If < 1 Ohm)


Verwijderd

Mijn proftpd.conf :
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
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName              "CowMike - FTP"
ServerType standalone
DefaultServer            on

# 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

# 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 30

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

# Normally, we want files to be overwriteable.
<Directory /*>
  AllowOverwrite            on
</Directory>

<Anonymous /var/ftp>
  # All files uploaded are set to username.usergroup ownership
  User username
  Group ftp
  UserAlias ftp username anonymous
  AuthAliasOnly on
  RequireValidShell off
  AllowForeignAddress on
  <Directory upload/>
     <Limit STOR CWD >
      AllowAll
     </Limit>
     <Limit READ RMD DELE MKD>
      DenyAll
     </Limit>
  </Directory>
</Anonymous>


<Global>
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
DefaultChdir /home/%s
DefaultRoot ~
DeleteAbortedStores off
HiddenStor off
ShowDotFiles on
AnonymousGroup ftp
</Global>

Voor het geval dat je er niet uit kwam :)
Pagina: 1