Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: VSFTPD vraag  (gelezen 800 keer)

Offline vis

  • Lid
VSFTPD vraag
« Gepost op: 2009/03/21, 23:59:00 »
Beste,

Ik heb zojuist VSFTPD geconfigureerd, zodat ik gebruik kan maken van virtual users en dit werkt perfect. Alleen kan ik nu niet meer als locale user inloggen, weet iemand hoe dit kan? Ook heb ik nooit als root (local user) kunnen inloggen via een ftpclient. Is dit uberhaupt wel mogelijk? Hier onderstaand heb ik mijn /etc/vsftpd.conf

# 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
# disables anonymous FTP
anonymous_enable=NO
# enables non-anonymous FTP
local_enable=YES
# activates virtual users
guest_enable=YES
# virtual users to use local privs, not anon privs
virtual_use_local_privs=YES
# enables uploads and new directories
write_enable=YES
# the PAM file used by authentication of virtual uses
pam_service_name=vsftpd-virtual
# in conjunction with 'local_root',
# specifies a home directory for each virtual user
user_sub_token=$USER
local_root=/home/virtual/$USER
# the virtual user is restricted to the virtual FTP area
chroot_local_user=YES
# hides the FTP server user IDs and just display "ftp" in directory listings
hide_ids=YES
# runs vsftpd in standalone mode
listen=YES
# listens on this port for incoming FTP connections
listen_port=21
# the minimum port to allocate for PASV style data connections
pasv_min_port=62222
# the maximum port to allocate for PASV style data connections
pasv_max_port=63333
# controls whether PORT style data connections use port 20 (ftp-data)
connect_from_port_20=YES
# the umask for file creation
local_umask=022
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=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

ftpd_banner=Welkom op de FTP-server van Unix

Alvast bedankt,

Vis

Offline koen_92

  • Lid
Re: VSFTPD vraag
« Reactie #1 Gepost op: 2009/03/22, 13:06:25 »
Zelf ben ik hier nu ook mee bezig, en ik krijg dat ook niet voor elkaar.

Inmiddels doe ik het anders:
Maak een nieuwe virtual-user, en maak een symbolic link van zijn directory naar de home-directory van de lokale user waarmee je wilt inloggen.

Maar er zal vast wel een beter oplossing zijn...