Portál AbcLinuxu, 15. května 2025 11:50
Ahoj, mam suse 10 na kteryjch mi beha lampp spolu s nim je nainstalovan a bezi proftpd.kdyz zadam v konzoli ftp localhost tak se me zepta na uzivatel. jmeno a heslo. takze predpokladam ze funguje. problem je ze nevim jak a kde ho nastavit. uplne by mi stacilo jedno jmeno + heslo - pro plny pristup. poradi prosim nekdo? diky moc
Ak sa nemylim, tak defaultne je proftpd vo vacsine beznych distribucii nastaveny na autentizaciu cez UNIX ucty, tzn. vytvorte si bezny uzivatelsky ucet cez konzolu (useradd + passwd), alebo cez graficky nastroj vo vasej distribucii.
V /etc/proftpd.conf najdete tiez parametre User a Group. Ked budete pomocou useradd vytvarat uzivatela, jeho UID a GID by mali zodpovedat tym, pod ktorymi bezi PROFTPD.
Odporucam tiez do configu pridat parameter "DefaultRoot ~ " aby vam uzivatelia nelozili po celom filesysteme :)
ahoj, diky za rady. konfiguracni soubor sem nasel tady: /opt/lampp/etc/proftpd.conf
to je v poradku. z linuxu se pripojim jako lacalhost nebo prez IP v pohode
<pre>
server:~ # ftp localhost
Trying 127.0.0.1...
Connected to localhost.
220 ProFTPD 1.3.1 Server (ProFTPD) [127.0.0.1]
Name (localhost:root): nobody
331 Password required for nobody
Password:
230 User nobody logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
<pre>
ale nejde se mi pripojit od jinud. netusi nekdo kde muze bejt chbka???
tady je jeste konfiguracni soubor
<pre># 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
# 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 nobody
#Group nogroup
# Normally, we want files to be overwriteable.
<Directory /opt/lampp/htdocs/*>
AllowOverwrite on
</Directory>
# only for the web servers content
DefaultRoot /server_C/FTP
# nobody gets the password "lampp"
UserPassword nobody wRPBu8u4YP0CY
# nobody is no normal user so we have to allow users with no real shell
RequireValidShell off
# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off
<pre>
diky
tak jsem to zkusil na nic
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.