Results 1 to 10 of 13
Hi, the problem I am getting is that vsftpd wont start on my red hat. The RPM is the default that is shipped with the OS and the vsftpd.conf file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-16-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 13
vsftpd won't start on red hat enterprise 5.7
Hi, the problem I am getting is that vsftpd wont start on my red hat. The RPM is the default that is shipped with the OS and the vsftpd.conf file is the default file and I will provide this below. I am rather new with linux been working on it for about a month so please bare with me.
This is really urgent I have been trying to figure out what's wrong for about a week now.Code:# Example config file /etc/vsftpd/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. # # Allow anonymous FTP? (Beware - allowed by default if you comment this out). anonymous_enable=YES # # 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 # # The target log file can be vsftpd_log_file or xferlog_file. # This depends on setting xferlog_std_format parameter 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 # # The name of log file when xferlog_enable=YES and xferlog_std_format=YES # WARNING - changing this filename affects /etc/logrotate.d/vsftpd.log #xferlog_file=/var/log/xferlog # # Switches between logging into vsftpd_log_file and xferlog_file files. # NO writes to vsftpd_log_file, YES to xferlog_file 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 blah 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 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 # # When "listen" directive is enabled, vsftpd runs in standalone mode and # listens on IPv4 sockets. This directive cannot be used in conjunction # with the listen_ipv6 directive. listen=YES # # This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 # sockets, you must run two copies of vsftpd whith two configuration files. # Make sure, that one of the listen options is commented !! #listen_ipv6=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES
Thanks in advance !!
- 08-16-2011 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,700
What command are you using to try and start it?
What output is displayed in the terminal after you try to start it (i.e., error messages)?
What does this command tell you?
What, if anything, is in /var/log/messages, related to vsftpd?Code:service vsftpd status
Check to see that your installation of vsftpd is in tact:
Code:rpm -qV vsftpd
- 08-16-2011 #3Just Joined!
- Join Date
- Aug 2011
- Posts
- 13
I am using "service vsftpd start" to start the service.
The error I am getting is "Starting vsftpd for vsftpd: FAILED"
Here are the only messages related but these were from yesterday.
Code:Aug 15 15:10:00 slave vsftpd[21363]: warning: can't get client address: Socket operation on non-socket Aug 15 15:11:32 slave vsftpd[21382]: warning: can't get client address: Socket operation on non-socket
service vsftpd status come back with " vsftpd is stopped"
finaly rpm -qv vsftpd gave back "vsftpd-2.0.5-21.el5"
- 08-16-2011 #4Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,700
That is a capital "V" in the "rpm -qV vsftpd" command. It tells you if any files/dirs belonging to the package have been modified.
Is your network adapter up?
How about trying to start the binary directly:Code:ip a
Is there anything in /var/log/secure or /var/log/xferlog?Code:/usr/sbin/vsftpd
Hardcore: you could try to strace the program:
Code:strace /usr/sbin/vsftpd
- 08-16-2011 #5Just Joined!
- Join Date
- Aug 2011
- Posts
- 13
The capital V didn't return a value
Yes my network adapter is up
starting the binary file direct doesn't work
This is what was in the /var/log/secure file and I didn't have a /var/log/xferlog file
strace didn't work came up with command not found..Code:Aug 15 15:52:24 slave userhelper[21923]: running '/usr/sbin/pirut' with root privileges on behalf of 'root' Aug 15 15:55:34 slave userhelper[21985]: pam_timestamp(system-install-packages:session): updated timestamp file `/var/run/sudo/root/unknown' Aug 15 15:55:34 slave userhelper[21988]: running '/usr/sbin/system-install-packages /tmp/proftpd-1.2.10-1.fc1.i386.rpm' with root privileges on behalf of 'root' Aug 15 15:55:51 slave userhelper[21999]: pam_timestamp(pirut:session): updated timestamp file `/var/run/sudo/root/unknown' Aug 15 15:55:51 slave userhelper[22002]: running '/usr/sbin/pirut' with root privileges on behalf of 'root' Aug 16 09:37:39 slave userhelper[1467]: pam_timestamp(pirut:session): updated timestamp file `/var/run/sudo/root/unknown' Aug 16 09:37:40 slave userhelper[1470]: running '/usr/sbin/pirut' with root privileges on behalf of 'root' Aug 16 09:43:57 slave userhelper[1610]: pam_timestamp(pirut:session): updated timestamp file `/var/run/sudo/root/unknown' Aug 16 09:43:57 slave userhelper[1613]: running '/usr/sbin/pirut' with root privileges on behalf of 'root' Aug 16 11:53:05 slave userhelper[3279]: pam_timestamp(pirut:session): updated timestamp file `/var/run/sudo/root/unknown' Aug 16 11:53:05 slave userhelper[3282]: running '/usr/sbin/pirut' with root privileges on behalf of 'root'
- 08-16-2011 #6Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,700
Okay, nothing returned with rpm -qV means the package is pristine = good.
You can download the strace program, you may need it:
You can also try disabling SELinux to see if that makes a difference.Code:yum install strace
Check if enabled:
If enabled, temporarily disable it:Code:getenforce
Code:setenforce 0
- 08-16-2011 #7Just Joined!
- Join Date
- Aug 2011
- Posts
- 13
- 08-16-2011 #8Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,700
Well, strace won't make it work - it should just output a bunch of debugging output that would hopefully give you a clue as to what is going on with vsftpd. Feel free to post the strace output here, although I may not be much help parsing it, somebody else might come along who could..
- 08-16-2011 #9Just Joined!
- Join Date
- Aug 2011
- Posts
- 13
Heres the strace out put if anyone can help...
ThanksCode:[root@slave ~]# strace /usr/sbin/vsftpd execve("/usr/sbin/vsftpd", ["/usr/sbin/vsftpd"], [/* 34 vars */]) = 0 brk(0) = 0x9f0f000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=41135, ...}) = 0 mmap2(NULL, 41135, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f71000 close(3) = 0 open("/lib/libssl.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\\\22\0004\0\0\0"..., 512) = 512 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f70000 fstat64(3, {st_mode=S_IFREG|0755, st_size=293428, ...}) = 0 mmap2(NULL, 294504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfb8000 mmap2(0xffc000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x43) = 0xffc000 close(3) = 0 open("/lib/libwrap.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 N\206\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=32824, ...}) = 0 mmap2(NULL, 32188, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xacc000 mmap2(0xad3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xad3000 close(3) = 0 open("/lib/libnsl.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\21d\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=109740, ...}) = 0 mmap2(NULL, 100296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x82c000 mmap2(0x841000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0x841000 mmap2(0x843000, 6088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x843000 close(3) = 0 open("/lib/libpam.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\252/\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=44532, ...}) = 0 mmap2(NULL, 41856, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xeb6000 mmap2(0xec0000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0xec0000 close(3) = 0 open("/lib/libcap.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\30\246\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=11560, ...}) = 0 mmap2(NULL, 13684, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x53f000 mmap2(0x542000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x542000 close(3) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\252Y\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=20668, ...}) = 0 mmap2(NULL, 16504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x185000 mmap2(0x188000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x188000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\237B\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1693812, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f6f000 mmap2(NULL, 1410500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x18a000 mmap2(0x2dd000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x153) = 0x2dd000 mmap2(0x2e0000, 9668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2e0000 close(3) = 0 open("/lib/libcrypto.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\305\212\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1297124, ...}) = 0 mmap2(NULL, 1313152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x6c5000 mmap2(0x7ef000, 77824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x129) = 0x7ef000 mmap2(0x802000, 14720, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x802000 close(3) = 0 open("/usr/lib/libgssapi_krb5.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\343(\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=190712, ...}) = 0 mmap2(NULL, 187804, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x5e0000 mmap2(0x60d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2d) = 0x60d000 close(3) = 0 open("/usr/lib/libkrb5.so.3", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\2\312\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=613716, ...}) = 0 mmap2(NULL, 614792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x994000 mmap2(0xa28000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x93) = 0xa28000 close(3) = 0 open("/lib/libcom_err.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340w\246\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=7812, ...}) = 0 mmap2(NULL, 9228, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x67d000 mmap2(0x67f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x67f000 close(3) = 0 open("/usr/lib/libk5crypto.so.3", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220W\262\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=157336, ...}) = 0 mmap2(NULL, 159168, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xce3000 mmap2(0xd09000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25) = 0xd09000 close(3) = 0 open("/lib/libresolv.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340P\206\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=80636, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f6e000 mmap2(NULL, 80072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x37d000 mmap2(0x38d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0x38d000 mmap2(0x38f000, 6344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x38f000 close(3) = 0 open("/lib/libz.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\325[\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=75120, ...}) = 0 mmap2(NULL, 76496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf4f000 mmap2(0xf61000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0xf61000 close(3) = 0 open("/lib/libaudit.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\234\322\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=97220, ...}) = 0 mmap2(NULL, 98588, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa72000 mmap2(0xa89000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16) = 0xa89000 close(3) = 0 open("/usr/lib/libkrb5support.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\311\264\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=33968, ...}) = 0 mmap2(NULL, 35140, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xbf8000 mmap2(0xc00000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xc00000 close(3) = 0 open("/lib/libkeyutils.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320h\265\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=8072, ...}) = 0 mmap2(NULL, 9400, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf65000 mmap2(0xf67000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xf67000 close(3) = 0 open("/lib/libselinux.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240ub\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=93508, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f6d000 mmap2(NULL, 97120, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x898000 mmap2(0x8ae000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15) = 0x8ae000 close(3) = 0 open("/lib/libsepol.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\357]\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=245376, ...}) = 0 mmap2(NULL, 285024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x110000 mmap2(0x14b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3b) = 0x14b000 mmap2(0x14c000, 39264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x14c000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f6c000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f6b000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f6b6d0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0x38d000, 4096, PROT_READ) = 0 mprotect(0x2dd000, 8192, PROT_READ) = 0 mprotect(0x188000, 4096, PROT_READ) = 0 mprotect(0x841000, 4096, PROT_READ) = 0 mprotect(0xb05000, 4096, PROT_READ) = 0 munmap(0xb7f71000, 41135) = 0 access("/etc/selinux/", F_OK) = 0 brk(0) = 0x9f0f000 brk(0x9f30000) = 0x9f30000 open("/etc/selinux/config", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=511, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f7b000 read(3, "# This file controls the state o"..., 4096) = 511 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7f7b000, 4096) = 0 open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f7b000 read(3, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 546 read(3, "", 1024) = 0 close(3) = 0 munmap(0xb7f7b000, 4096) = 0 stat64("/etc/vsftpd/vsftpd.conf", {st_mode=S_IFREG|0600, st_size=4578, ...}) = 0 open("/etc/vsftpd/vsftpd.conf", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0600, st_size=4578, ...}) = 0 mmap2(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f78000 mprotect(0xb7f7b000, 4096, PROT_NONE) = 0 mprotect(0xb7f78000, 4096, PROT_NONE) = 0 read(3, "# Example config file /etc/vsftp"..., 4578) = 4578 mprotect(0xb7f78000, 4096, PROT_READ) = 0 munmap(0xb7f78000, 16384) = 0 close(3) = 0 stat64("/etc/vsftpd/vsftpd.conf", {st_mode=S_IFREG|0600, st_size=4578, ...}) = 0 getuid32() = 0 getpid() = 5530 getpeername(0, 0xad3940, [128]) = -1 ENOTSOCK (Socket operation on non-socket) recvfrom(0, 0xbfb2bb18, 8192, 2, 0xad3940, 0xbfb2bb14) = -1 ENOTSOCK (Socket operation on non-socket) time(NULL) = 1313509434 open("/etc/localtime", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f7b000 read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0"..., 4096) = 3661 close(3) = 0 munmap(0xb7f7b000, 4096) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0 socket(PF_FILE, SOCK_DGRAM, 0) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 connect(3, {sa_family=AF_FILE, path="/dev/log"...}, 110) = 0 send(3, "<91>Aug 16 16:43:54 vsftpd[5530]"..., 99, MSG_NOSIGNAL) = 99 open("/etc/hosts.allow", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=161, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f7b000 read(4, "#\n# hosts.allow\tThis file descri"..., 4096) = 161 read(4, "", 4096) = 0 close(4) = 0 munmap(0xb7f7b000, 4096) = 0 open("/etc/hosts.deny", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=347, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f7b000 read(4, "#\n# hosts.deny\tThis file describ"..., 4096) = 347 read(4, "", 4096) = 0 close(4) = 0 munmap(0xb7f7b000, 4096) = 0 close(3) = 0 fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 fcntl64(0, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(0, F_SETFL, O_RDWR|O_NONBLOCK) = 0 write(0, "500 OOPS: ", 10500 OOPS: ) = 10
- 08-16-2011 #10Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,700
Have you put anything in your tcp_wrappers config files, /etc/hosts.allow and /etc/hosts.deny? I don't know why that would be a problem, but it is one of the last things listed in your strace output.
Also, is there ANY output when you run /usr/sbin/vsftpd by itself?
EDIT: Is anything else already listening on the default FTP port (21)?
Code:netstat -tulnp|grep :21
Last edited by atreyu; 08-16-2011 at 05:12 PM.


1Likes
Reply With Quote

