Daginn ég er í miklum vandræðum með að gera starfhæfan vsftp með apache og þá helst með /home/~user en mér tekst það engan veginn þrátt fyrir miklar yfirlegur og leit á vefnum.
“vsftpd.conf lítur svona út”
anonymous_enable=NO
local_enable=YES
write_en able=YES
local_umask=022
#anon_upload_enable=YES
#an on_mkdir_write_enable=YES
#dirmessage_enable=YES
xfer log_enable=YES
#connect_from_port_20=YES
#chown_uploa ds=YES
#chown_username=whoever
xferlog_file=/var/log/ vsftpd.log
#xferlog_std_format=YES
idle_session_timeo ut=600
data_connection_timeout=120
#nopriv_user=ftpse cure
ascii_upload_enable=YES
ascii_download_enable=YE S
—————
er eitthvað rugl hér ???
chroot_local_user=YES
passwd_chroot_enable=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.c hroot_list
userlist_deny=NO
userlist_enable=YES
user list_file=/etc/vsftpd.user_list
#listen=YES
——— ——–
—————–
“svona er vsftpd.chroot_list”
# Users that are allowed to login via ftp
alex
“svona er vsftpd.user_list”
# Users that are allowed to login via ftp
alex
“og svona er vsftpd.ftpusers”
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
“í xinetd.d/vsftpd”
# vsftpd is the secure FTP server.
service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/vsftpd
per_source = 5
instances = 200
banner_fail = /etc/vsftpd.busy_banner
log_on_success += PID HOST DURATION
log_on_failure += HOST
}
“í etc/passwd”
alex:x:606:501:alex:/home/alex:/sbin/no login