PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ProFTPD starten und User anlegen



php-set.de
08.11.03, 12:28
Hallo,

habe jetzt einen vServer bei GiWeb.de und möchte nun per FTP drauf zugreifen. ich habe schon nen Shelluser erzeugt, aber ich kann trotzdem immer noch nicht auf den FTP drauf zugreifen. Der Support von GiWeb meinte, dann müsste es gehen.

FTP-Server lehnt immer die Verbindung ab.

Was mache ich falsch?

psy
08.11.03, 12:34
ok...

proftpd welche version?
was soll der user dürfen?

wie sieht deine proftpd.conf aus? poste mal...
edit:
findest du in /etc/proftpd.conf

php-set.de
08.11.03, 12:38
Hallo,

keine Ahung, welche Version das is. Wie finde ich das raus...

hir die conf:

# 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 Default Installation"
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

# Disable IdentLookups by default
IdentLookups off

# 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 nobody
Group nobody

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

# Needed for NIS.
PersistentPasswd off
"proftpd.conf" 78L, 2197C

Grüße,
Fabian

psy
08.11.03, 12:50
bin mir nicht ganz sicher aber trag das mal in die config ein



<Anonymous ~deinuser>
User deinuser
Group deinegruppe

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


wenn das net klappt, hauste dir mal http://proftpd.linux.co.uk/localsite/Userguide/linked/userguide.html in den kopf :)

php-set.de
08.11.03, 13:11
Hallo,

wie starte ich denn den Server? Bin mir nich ganz sicher ob er überhaupt läuft?

Grüße,
Fabian

psy
08.11.03, 13:15
proftpd start
oder
./proftpd (im programmverzeichnis)
oder
rcproftpd start

welche distri hast du?

php-set.de
08.11.03, 13:26
Hallo,

SuSE 8.2 als vServer.

Jetzt geht alles, bis aufs einloggen. Wenn ich mich mit root und password einloggen, kommt trotzdem der fehler, dass das password falsch ist. Woran liegt das...?

Grüße,
Fabian

psy
08.11.03, 13:31
also mit root würde ich mich sowieso nicht am ftp-server anmelden...

geh mal in /etc/ftpusers und schau ob der entsprechende user für ftp dort drin steht, wenn ja trag ihn aus und versuchs nochmal

php-set.de
08.11.03, 13:44
Hallo,

funzt net. Auch wenn ich root aus dem /etc/ftpusers nehme, geht nicht...

Grüße,
Fabian

psy
08.11.03, 14:03
tja sorry dann keine ahnung

guck dir mal die page an die ich gepostet hab.

Sheriff
08.11.03, 14:33
geh mal www.proftpd.de >> forum

php-set.de
08.11.03, 14:36
Hallo,

da hab ich auch schon gefragt, hat aber noch keiner geantwortet.

Grüße,
Fabian

php-set.de
08.11.03, 14:56
Hallo,

hat jetzt geklappt. Endlich.

Grüße,
Fabian

psy
08.11.03, 15:07
ja und woran lags?
ist vielleicht für andere auch ganz interessant.

php-set.de
08.11.03, 18:54
Hallo,

also nachdem ich den neuen User angelegt hab, hab ich nur das Passwort von ihm gelöscht und ein neues vergeben. Und dann gings auf einmal :)

Grüße,
Fabian

php-set.de
08.11.03, 21:19
Hallo,

also der FTP-Server läuft jetzt auch und ich kann mich wunderbar einloggen.
Doch eine Frage habe ich noch:

Wenn ich mit einem normalen User einlogge (nicht root), dann kann ich den gesamten Server sehen, d.h. auch alle Verzeichnisse. Wie stelle ich ein, dass der FTP-User nur in seinem Homeverzeichnis bleibt und nicht ausserhalb von /home/username agiert?

Grüße,
Fabian

psy
08.11.03, 21:24
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

in die proftpd.conf eintragen:


DefaultRoot ~

php-set.de
08.11.03, 21:38
Hallo,

funzt aber net. Ich kann immer noch aus /home/username raus, wenn ich dann in /home bin, zeigt er aber nicht mehr das Verzeichnis username an!

Hier die Config:

ServerName "80.239.228.141"
ServerType standalone
DefaultServer on
Port 21
Umask 022
MaxInstances 30
User nobody
Group nogroup
Defaultroot ~
<Directory />
AllowOverwrite on
</Directory>

Grüße,
Fabian