hi
valaki be tud ide dobni egy olyan müködö vsftpd.confot ahol felhasználói név+ jelszóval kell
beconnectelni??
köszi a segítséget.
Biros A.
- 4095 megtekintés
Hozzászólások
anonymous_enable=NO
esetén mindenképpen kér azonosítást.
local_enable=YES
esetén a rendszerszintű authentikációt használja. pl. PAM.
Érdemes ezt elolvasni...
http://vsftpd.beasts.org/vsftpd_conf.html
--
maszili
- A hozzászóláshoz be kell jelentkezni
Hello,
Ez egy működő config.
Virtual userek vannak, jogok kiosztása a user_config_dir=/etc/vsftpd_user_conf file-ban van beállítva.
Titkosítás (SSL/TLS) bekapcsolva (kliens oldalon opcionális lehetőségként.)
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=NO
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to xxxxxx FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories. See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
#
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
ssl_enable=YES
force_local_logins_ssl=NO
force_local_data_ssl=NO
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
# Innentol mar sajat!
# The guest_enable is very important - it activates virtual users! And
# guest_username says that all virtual users are mapped to the real user
# "virtual" that we set up above. This will also determine where on the
# filesystem the virtual users end up - the home directory of the user
# "virtual", /home/ftpsite.
guest_enable=YES
guest_username=virtual
user_config_dir=/etc/vsftpd_user_conf
# If set to NO, all directory list commands will give permission denied.
dirlist_enable=yes
# The maximum data transfer rate permitted, in bytes per second, for local authenticated users.
# Default: 0 (unlimited)
# local_max_rate=15000
#When enabled, anonymous users will only be allowed to download files which are world readable.
#This is recognising that the ftp user may own files, especially in the presence of uploads.
#anon_world_readable_only=NO
#If enabled, virtual users will use the same privileges as local users.
#By default, virtual users will use the same privileges as anonymous users,
#which tends to be more restrictive (especially in terms of write access).
#virtual_use_local_privs=YES
userlist_deny=NO
userlist_enable=YES
# If enabled, all user and group information in directory listings will be displayes as "ftp".
# Default: NO
hide_ids=YES
#pasv_enable=YES
pasv_min_port=50000
pasv_max_port=50100
- A hozzászóláshoz be kell jelentkezni
ezer köszi.
üdv:
Biros A.
- A hozzászóláshoz be kell jelentkezni
ezer köszi.
üdv:
Biros A.
- A hozzászóláshoz be kell jelentkezni
hogy néz ki ez a vsftpd_user_conf?
- A hozzászóláshoz be kell jelentkezni
Hello,
Létrehozod az engedélyezett felhasználók neveit tartalmazó listát: /etc/vsftpd.user_list file-ban.
pl.
Joe
Tom
Allan
Az itt felsorolt felhasználók jogosultságait, pedig az /etc/vsftpd_user_conf könyvtárban állítod be.
Itt létrehozod a Joe,Tom,Allan nevű file-okat.
Joe pl. nálam így néz ki (feltöltési joga van, törölni nem tud):
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_world_readable_only=NO
#hide_file={*.mp3,.hidden,*.mov} rejtett file-ok Joe számára
#deny_file={Melinda.*,.private} Joe-nak nem engedett az alábbi file-ok letöltése
deny_file={Barb*}
Az /etc/usr/share/doc/vsftpd/example/virtual_hosts/readme file lépésenként leírja, hogy kell megcsinálni az egészet.
- A hozzászóláshoz be kell jelentkezni
jah olvasom.
berkeley db programbol melyik kell?
hogy tom ezt ap-gettel lekapni??
felraktam a db4-utilt apt-gettel, de mikor kiadom ezt a parancsot
db_load -T -t hash -f logins.txt /etc/vsftpd.login.db
akkor nem találja...(ez van a leírásban)
nem tom biztosan kell az a database-s cucc ahhoz hogy be tudjak állítani egy olyan szervert ahova felhasználói névvel és jelszóval kell belépni?
?
- A hozzászóláshoz be kell jelentkezni
hát kelleni nem kell, meg lehet local user-ekkel is oldani, nálam így van. (nekem személyszerint) sokkal egyszerűbb is úgy. persze ha sok-sok felhasználó van, akkor talán nem eza legjobb módja.
persze a ftp-only local userek unprivileged userek, nem tudnak belépni máshogy (pl. desktopra sem, ssh sem, sehogyan, csakis ftp-vel)
- A hozzászóláshoz be kell jelentkezni
van itt egy adott ip cím és nekem csak annyit kellen beállítani, hogy tudjanak rá feltölteni cuccokat.de csak feltölteni tudjanak, és mást nem is kellene lássanak, szted akkor ezt hogy?
- A hozzászóláshoz be kell jelentkezni
http://hup.hu/node/60210#comment-630003
azt nem tudom, hogy lehet-e olyat, hogy írható csak a feltöltésikönyvtár, de nem olvasható...?! ez nekem így fura, el tudom képzelni, hogy problémákat okozna így... pl. megszakadt feltöltés folytatása tutira nem menne ilyen formán, mivel nem tudnák lekérdezni, hogy hány bájt van feltöltve és honna kellene folytatni. de esetleg megpróbálhatod.
talán local_umask-kal megoldható.
esetleg úgy is lehet, hogy a feltöltési mappa(-ák) 770 jogúak, majd chown_uploads=yes, chown_username=valaki, és egy olyan usernek adnám, aki se nem owner se nem group member, tehát rá a 0 jogok vonatkoznak, ergó nem tud olvasni sem.
(ezek csak tippek)
- A hozzászóláshoz be kell jelentkezni
végül is sztem nem akkora baj, ha tudnak olvasni a könyvtárban, így elgondolva igazad lehet.
ezt az umaskot nem vágom...valahogy egyszerüen meg kellene ezt oldani,csak nem tom hogy :S:S
- A hozzászóláshoz be kell jelentkezni
fent írtam 2 egyszerű megoldást.
- A hozzászóláshoz be kell jelentkezni
Nálam ez a csomag van fent: dpkg -l db*
ii db4.2-util 4.2.52+dfsg-5 Berkeley v4.2 Database Utilities
A helyes parancs ekkor: db4.2_load -T -t hash -f logins.txt /etc/vsftpd_logins.db
- A hozzászóláshoz be kell jelentkezni
az én konfigom igy néz ki, ha csinálok egy átlag usert az öreg useradd paranccsal nem tok vele belépni.:S
valaki tudja hogy miért?
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to HunNet FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories. See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=NO
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
#
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
- A hozzászóláshoz be kell jelentkezni
man vsftpd.conf?
google?
add hozzá ezt a kettőt:
userlist_enable=YES
userlist_deny=NO
majd hozz létre egy vsftpd.user_list nevű fájlt az /etc-ben, és sorold fel azokat az usereket, akiknek engedélyezed az ftp belépést. (soronként egy)
- A hozzászóláshoz be kell jelentkezni
már kugliztam egy csomót, de nekem ezek a manok elég idegesítőek, inkább ált. félreveztetnek mintsem a megoldást meg tudjam találni.
lehet mert elég szegényes az angol tudásom.
nem lehet valahonnan letölteni debianhoz magyar nyelvű manualokat, ugy kb. mindenhez??
- A hozzászóláshoz be kell jelentkezni
Hello,
Ha nem sikerul, akkor holnap keress meg skype-on és segítek on-line hogy csináld.
- A hozzászóláshoz be kell jelentkezni
köszi a segítséget, de csak msnem van mert most is debian alol netezek...
felveszlek msnre ok?
- A hozzászóláshoz be kell jelentkezni
hát megcsináltam amit mondasz de ezt irja ki:
ftp localhost
Connected to localhost.
220 Welcome to vs FTP service.
Name (localhost:root): homar1
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/homar1
Login failed.
421 Service not available, remote server has closed connection
ftp> quit
sftp localhosttal beenged de az nem irja ki a banner szöveget pl
sftp localhost
Connecting to localhost...
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 28:23:57:46:23:2b:4c:62:b5:44:ef:f6:cc:2e:39:8b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
root@localhost's password:
- A hozzászóláshoz be kell jelentkezni
hello,
ls -lh /home/homar1 kimenete?
- A hozzászóláshoz be kell jelentkezni
homar1 nek nem hoztam létre home könyvtárat kitöröltem
gondolom ezért nem találta a home könyvtárat
viszont itt egy másik user
erre egyszerüen azt irja ki h login incorrect
web:~# ls -lh /home/homar
total 0
- A hozzászóláshoz be kell jelentkezni
fel van véve a vsftpd.user_list fájlba ez a user?
- A hozzászóláshoz be kell jelentkezni
szépen mükszik:D
köszi a segítséget!
- A hozzászóláshoz be kell jelentkezni
Sziasztok.
Én azt szeretném valahogyan elérni,hogy a feltöltött file-ok alapból 644 legyenek 600 helyett.
(és ugyanígy a mappák 700 helyett 755)
Tudnátok nekem ebben segíteni ?
Előre is köszi.
- A hozzászóláshoz be kell jelentkezni
chown_upload_mode
The file mode to force for chown()ed anonymous uploads. (Added in v2.0.6).
Default: 0600
--
Elméletileg nincs különbség elmélet és gyakorlat között. Gyakorlatilag van.
- A hozzászóláshoz be kell jelentkezni
sajnos éppen ez az ami miatt segítséget kértem :-(
nem változik semmi :-/
a file-ok és mappák is ugyanúgy maradnak
(mellesleg ez a mappákra is hatással lenne? )
- A hozzászóláshoz be kell jelentkezni
local_umask=022
- A hozzászóláshoz be kell jelentkezni
ez is megvolt,de sajnos az állapot változatlan maradt :-(
- A hozzászóláshoz be kell jelentkezni
Pedig hidd el ez kell.
Ha netan anonymous a user, akkor local_umask=022 helyett anon_umask=022, (mindket esetben feltetelezve, hogy file_open_mode=666 de az a default). Ha igy van beallitva, es megsem jo, akkor valami massal van baj, nem a vsftpd-vel.
- A hozzászóláshoz be kell jelentkezni
Igazad van ,ez volt ami nekem kellett: local_umask=022
Valamilyen oknál fogva, a szerkesztőből(nano) kilépve nem lett elmentve a változtatást.
Elnézést a kétbalkezességem miatt :-(
Köszönöm.
- A hozzászóláshoz be kell jelentkezni
Pedig jó a nano:) Módosítás után F2->y vagy i majd enter és kilépett mentéssel.
- A hozzászóláshoz be kell jelentkezni