Tag Info

Hot answers tagged

2

This tutorial would seem to be what you're looking for, titled: Setup Virtual Users and Directories in VSFTPD. excerpt In /etc/vsftpd.conf. listen=YES anonymous_enable=NO local_enable=YES virtual_use_local_privs=YES write_enable=YES connect_from_port_20=YES secure_chroot_dir=/var/run/vsftpd pam_service_name=vsftpd guest_enable=YES user_sub_token=$USER ...


1

you can't exactly do it with a command line option, but what you can do is redirect stdin like so: $ ftp -n ftp.backupte4.rsyncbackup.info << EOF > quote USER bapte > quote PASS b2p7Ua2 > put somefile <-- this is the command you want to execute > quit > EOF or you can put it in a script: #!/bin/sh ftp -n ...


1

You can usually find selinux denials in /var/log/messages. Try this (as root): grep avc /var/log/messages | grep ftp Review the output and decide whether the denials are erroneous, given your desired configuration. Tune the grep statements as necessary to whiddle the information down to only the statements you want to fix. It's often useful to ...


1

SELinux won't let vsftpd serve files from places other than /var/ftp or write logs outside /var/log on purpose. SELinux is all about disaster mitigation. FTP is fundamentally insecure. Running vsftpd under SELinux is a good idea, because it minimizes the damage an attacker can do if he decides to attack your FTP service. Running a fundamentally insecure ...


1

You could use something like expect to provide the credentials each time you want to connect. It's not super secure but gives you what you want. #!/usr/local/bin/expect -- set timeout -1 spawn gvfs-mount {args} expect "User" send "joe\n" expect "Password:" send "xxxxx\n" expect eof Source: gvfs-mount specify username password


1

Iptables needs some kernel modules loaded in order for "RELATED, ESTABLISHED" to work. If your HTTP clients are okay, you obviously have some of them. > lsmod | grep conntrack nf_conntrack_ipv4 20258 6 nf_defrag_ipv4 12702 1 nf_conntrack_ipv4 xt_conntrack 12760 6 nf_conntrack 99996 2 ...



Only top voted, non community-wiki answers of a minimum length are eligible