04-09-2004
I thought vsftp setup would be on the forum too and even thought I already posted it. All I could find was wu-ftp. So here is vsftp (maybe again). If something doesn't make sense, check out the man pages or post a reply. I don't fully understand all the settings available in the .conf file so I probably can't help you there too much.
1. Install the vsftp rpm. rpm -ihv vsftp*.rpm.
2. vi /etc/xinetd.d/vsftpd. Should look like this:
service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
server_args = /etc/vsftpd/vsftpd.conf
nice = 10
per_source = 5
instances = 50
log_on_success += PID HOST DURATION
log_on_failure += HOST
}
3. Add "vsftpd: ALL" to /etc/hosts.allow. Replace "ALL" with your subnet, machine list, or whatever if you don't want everyone to be able to connect. ALL will let every machine connect, but you still need a login and password.
4. Create an /etc/vsftpd/vsftpd.conf file like this:
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=NO
tcp_wrappers=YES
5. (optional) - If you want to ftp as root or any other user that is normally restricted, remove them from /etc/vsftpd.ftpusers.
6. (optional) - Do the same for /etc/vsftpd.user_list.
7. Type 'service xinetd restart' and you should be set.
This setup may open the ftp door further then you want to but should get you started.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Anyone know how to get FTP up and running on a fresh install of RedHat Linux 9?
Thanx,
Aaron (2 Replies)
Discussion started by: Spetnik
2 Replies
2. Cybersecurity
I just started a new job and inherited a Fedora core 3 server. I wanted to open the ftp ports and I wanted to verify this code before I mess things up. From my reading the two lines below should allow ftp access can anyone confirm my attempt.
iptables -A INPUT -p tcp - sport 21 -m state - state... (0 Replies)
Discussion started by: mungaz
0 Replies
3. SCO
I have problem with ftp connection on SCO UNIX 5.0.7, it is work slowly. How I can
make accelerate. (6 Replies)
Discussion started by: draganmi
6 Replies
4. Solaris
Hi all,
I must connect my PC (Windows 2000) to Sun Enterprise 450 (4 X UltraSPARC-II 400Mhz) for Solaris 10 Installation. My PC doesn't have a serial port therefore I must use USB port.
How can I connect USB port of my PC to the serial port (DB 25) of Sun 450?
Will be there any problems with... (3 Replies)
Discussion started by: Sunb3
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Anyone encounter whereby when you FTP from an Unix server (Solaris 8) to another server (Window Server 2003), you tend to wait a long while when you do a "ls" and you get a timeout after that. However, when you FTP again and do a "ls", the result of "ls" shown immediately. All connection are... (5 Replies)
Discussion started by: ahlude
5 Replies
6. Solaris
Hi everyone,
I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies
7. Solaris
Hello,
Can someone help me in getting a passwordless FTP conncetion ?
It works if I do it as myself, but I need to be user1 when I do it, not myself. When I do it as user1, it asks for user1 password, which we don't have. All in all, ftp myserver.com works on all other servers when I'm... (5 Replies)
Discussion started by: aksijain
5 Replies
8. UNIX for Advanced & Expert Users
Hi- While trying ftp from AIX to Windows im getting below error. Can anyone share ur views on this topic.
root@AB101# ftp -n 10.192.168.68
ftp: connect: A remote host refused an attempted connect operation.
ftp>
Thanks. (3 Replies)
Discussion started by: yanis
3 Replies
9. Debian
I have two computers running Debian 6.0 and one running Solaris 2.6 on a private network. The Debian computers can ftp to the Solaris computer but if a Debian computer is the destination the ftp connection is refused. I assume this is some security feature of Debian. What can I do to allow... (2 Replies)
Discussion started by: snorkack59
2 Replies
10. Shell Programming and Scripting
Hi I am trying to execute a shell script which is in unix server gs1. The script is below which basically connects to another unix server q15 and tries to get a file using FTP .
But i get error as "ftp: connect: Connection refused
Not connected.
Not connected."
Please help with if the below... (8 Replies)
Discussion started by: samrat dutta
8 Replies
LEARN ABOUT PHP
pam_loginuid
PAM_LOGINUID(8) Linux-PAM Manual PAM_LOGINUID(8)
NAME
pam_loginuid - Record user's login uid to the process attribute
SYNOPSIS
pam_loginuid.so [require_auditd]
DESCRIPTION
The pam_loginuid module sets the loginuid process attribute for the process that was authenticated. This is necessary for applications to
be correctly audited. This PAM module should only be used for entry point applications like: login, sshd, gdm, vsftpd, crond and atd. There
are probably other entry point applications besides these. You should not use it for applications like sudo or su as that defeats the
purpose by changing the loginuid to the account they just switched to.
OPTIONS
require_auditd
This option, when given, will cause this module to query the audit daemon status and deny logins if it is not running.
MODULE TYPES PROVIDED
Only the session module type is provided.
RETURN VALUES
PAM_SESSION_ERR
An error occurred during session management.
EXAMPLES
#%PAM-1.0
auth required pam_unix.so
auth required pam_nologin.so
account required pam_unix.so
password required pam_unix.so
session required pam_unix.so
session required pam_loginuid.so
SEE ALSO
pam.conf(5), pam.d(5), pam(7), auditctl(8), auditd(8)
AUTHOR
pam_loginuid was written by Steve Grubb <sgrubb@redhat.com>
Linux-PAM Manual 09/19/2013 PAM_LOGINUID(8)