PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : proftp user start verzeichniss



korax
18.12.02, 11:23
Moinsen

follgendes Problem ergabsich
User upload "exist" home = /home/upload
es soll aber wenn der user sich einloggt via ftp der ortner
/home/server/incoming/upload gemappt werden .. mein conf...

wo ist bitte der fehler =?

/etc/proftp.conf
ServerName "fsfd"
ServerType standalone
DefaultServer on

Port 21
Umask 022
MaxInstances 30

User nobody
Group nogroup

<Directory />
AllowOverwrite off
</Directory>

<Anonymous ~ftp>
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 2
DisplayLogin welcome.msg
DisplayFirstChdir .message

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

</Anonymous>
<Anonymous /home/server/incoming/ftp/>
User upload
Group users

RequireValidShell off
AllowStoreRestart on
AnonRequirePassword on
AuthAliasOnly on
AuthUsingAlias on

<Directory *>

<Limit ALL>
AllowAll
</Limit>
</Directory>
</Anonymous>

Stormbringer
18.12.02, 13:50
Hi,

mit <Anonymous ~ftp> weißt Du proFTPD an, daß Homeverzeichnis des FTP Users als Startpunkt zu nehmen.
Also, entweder das Homeverzeichnis ändern, oder den Anonymouseintrag.

Gruß

korax
18.12.02, 15:58
sorry aber für den user Upload denke ich es gemacht zu haben mit

<Anonymous /home/server/incoming/ftp/>

oder is da nen syntax fehler ??

korax
18.12.02, 16:32
KANN hier mal einer der mehr als nur ein Anonymouse ftp hat seine conf
publishen BITTE,,,,
BBBBB
IIIIIIII
TTTTTT
TTTTTT
EEEEE

................
:rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes:

korax
18.12.02, 16:41
ich habe gelesen das der Proftp beim start die .conf datei einlesen würde !!

BEI MIR NICHT !!! ich änder was es ist ihm egal nach dem neustarte

WAUM bitte?!? ?!!? ?! !?!?!? !?!?!?! ?!?!?!!??!?!!?!?!?!?!?!?!? !? ?!? !? !? !?

:eek: :eek:

korax
18.12.02, 18:52
ich habe gelesen das der Proftp beim start die .conf datei einlesen würde !!

BEI MIR NICHT !!! ich änder was es ist ihm egal nach dem neustarte

WAUM bitte?!? ?!!? ?! !?!?!? !?!?!?! ?!?!?!!??!?!!?!?!?!?!?!?!? !? ?!? !? !? !?

:eek: :eek:

Stormbringer
18.12.02, 19:48
Hi,

zunächst einmal solltest Du systemweit nach proftpd.conf suchen .... vielleicht wird ja tatsächlich eine andere als die /etc/proftpd.conf benutzt (find / -name "proftpd.conf")

Aber nun zu der anderen Frage:
bei mehreren Anonymous Bereichen ..... wie soll denn der Server dann wissen, welcher Anonymous gerade aktiv ist?

Lege Dir doch einfach mehrere FTP Nutzer (bspw. ftp1) an, ohne shell, und gebe dort als Homeverzeichnis /home/server/incoming/upload an.
Meldet sich nun ftp1 per ftp an, gelangt er in jenes oben definierte Verzeichnis.
Hast Du dann mehrere solcher ftp accounts, kannst Du für all diese Einträge in der Art:
<Global>
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart off
IdentLookups on
DeleteAbortedStores on
HiddenStor off
ShowSymlinks on
WtmpLog on
DefaultRoot ~
</Global>
...
<Anonymous ~ftp>
User ftp
Group public
UserAlias anonymous ftp
MaxClients 5
DisplayLogin msgs/welcome.msg
DisplayFirstChdir .message
AllowForeignAddress off
AllowRetrieveRestart on
AllowStoreRestart off
</Anonymous>
...
<Directory /srv/ftp-users/ftp1> #Homeshare des Nutzers ftp1
AllowRetrieveRestart on
AllowStoreRestart off
DeleteAbortedStores on
HiddenStor off
HideNoAccess on
AllowOverwrite off
GroupOwner nogroup
UserOwner nobody
</Directory>
anlegen.

Ansonsten kann ich Dir nicht weiterhelfen.

Gruß

Stronzo
18.12.02, 22:48
Hallo,

ich hatte auch den Ärger. Es wurde keine /etc/proftpd.conf angelegt, auch nicht woanders. Ich habe dann die standalone-Version proftpd-standalone-1.2.7rc3-1.i386.rpm genommen, vorher musste proftpd-1.2.7rc3-1.i386.rpm installieren. Es werden links nach /etc/rc.d/init.d und startskripte in rc3.d etc. angelegt, ebenso eine etc/proftpd.conf. Die .conf sieht dann bei mir so aus (und hat jetzt auch Auswirkungen):

# 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 "ProFTPD "
ServerType standalone
DefaultServer on

# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart 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

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

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

# Needed for NIS.
##PersistentPasswd off

# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /home/foo
# chroot environment you would do this:
#
# DefaultRoot /home/foo foo
DefaultRoot /ftp/download user1
DefaultRoot /tmp user2
DefaultRoot ~ user3
DefaultRoot / ichselber
##etcetera, die user kommen nicht weiter nach oben.
<Global>


##DefaultChdir /var/ftp/pub
##DefaultRoot /var/ftp/pub/ users


##nicht ganz unbedenklich, lieber ssh nehmen:
RootLogin on
</Global>

##den usern die shell entziehen, kein login:
RequireValidShell off


####Ende##########


Anonymous ist nicht.

Ich hoffe, geholfen zu haben. Ansonsten: http://www.proftpd.net/

Stronzo

korax
21.12.02, 13:12
das war alles was ich bruchte .... :_))

danke

till:D

korax
21.12.02, 13:31
warum ist das start verzeichniss von upload immernoch sein home und nicht der angegebene ortner ?
und der user upload darf alle verzeichnisse anschauen warum =????

danke



ServerName "korax"
ServerType standalone
DefaultServer on

Port 21
Umask 022

MaxInstances 30

User nobody
Group nogroup

<Directory />
AllowOverwrite off
</Directory>

AllowStoreRestart on
DefaultRoot /home/server/incoming/ftp upload

<Anonymous /home/server/incoming/ftp>
User ftp
Group ftp

UserAlias anonymous ftp

MaxClients 10

DisplayLogin welcome.msg
DisplayFirstChdir .message

<Limit WRITE>
DenyAll
</Limit>

</Anonymous>
<Directory /home/server/incoming/ftp/>

UserOwner upload

<Limit ALL>
DenyAll
</Limit>
</Directory>
~
~