CentOS 5 :: Get The Source Of Vsftpd That Matches The Binary Distribution?
Aug 3, 2009
When I do a yum or an initial load of vsftpd, I get binary that works. I got the source file "vsftpd-2.0.5-12.el5_3.1.src.rpm" from [URL] to make a change to add chown_upload_mode to version 2.0.5
With no changes to the source, the program works but does not respond to the service command properly. See [URL]
How do I get the source of vsftpd that matches the binary distribution?
I have downloaded whole linux source codes of fedora in a dvd. There are several rpm packages and lots of directories in it. I want to load all source codes to version control system (svn or cvs) which is loacated in a server and develop it step by step .During this time I want to build my own distribution. So I need to know how to build all these packages at once. Is there anyone who can explain "how to do" to me
Right now to install software from source I do a ./configure && make && make install which doesn't allow for easy uninstallation (some don't come with an 'uninstall' goal, and if they do you have to keep the source around). I'd like to learn how to create binary RPMs from source tar.gz files (one reason being that it makes for easier uninstallation). I tried the following but it complains with the following errors:
Code: $ rpmbuild -ta mysource.tar.gz error: Name field must be present in package: (main package) error: Version field must be present in package: (main package) error: Release field must be present in package: (main package) error: Summary field must be present in package: (main package) error: Group field must be present in package: (main package) error: License field must be present in package: (main package)
Apparently that's what happens when there is no SPEC file in the tarball. But all the tars I've tried give this same error. Is there a simple way to create binary RPMs from source files - as an example, this source tar [URL].
Very often we get to hear Binary / Source when we talk about installing packages...From what I understand "Binary" refers to a natively packaged installation by a Distro wheras installation from Source would entail fetching the files, Compiling and then building the package. When we say "source" where do these codes reside? Is it diffferent for different distros or one common source like "sourceforge.net" or similar?! I know it sounds silly but what is the origin of the source codes??
One general remedy if a package is not found is to install from source... So , source would refer to a "tar.gz" or "bz2" archive present at some location like "[URL]". In some cases , id it possible that some packageas are not available in "Source". When I tried to build a package for a particular distro , I was told that some dependencies are not un the source ...What is the meaning of this? So do all distros maintain the codes in their official repositories?
I got some binaries from internet (amule), but am afraid of using them, exposing my system. Since some run long simulations, it is not desirable to run in slow VM.
What do you gurus say if I run it as a new user? So the binaries would just be able to read and execute my binutils... Is that harmfull?
Is there any open source Linux distribution available, which has built in anti-virus package installed, like kaspersky, mcafee or trend micro, so that I can able to scan my windows XP based machines which are on the network, and can be scan and clean remotely through this type of Linux distribution installed machine. I have search on a internet that some Live rescue Linux cd's are available, which can scan and clean the virus of windows machines. like F-secure Live cd, or knoppex Linux based Bit defender live cds that can be most effective to resolve this issue. But is there any distribution available like these live Linux distribution cd's, that can be installed in dedicated system to scan/clean the remote windows machines. Or is live cd can be installed on hard drive?
I know there's a which command, that echoes the full name of a binary (e.g. which sh). However, I'm fairly sure there's a command that echoes the package that provides a particular binary. Is there such a command? If so, what is it? I'd like to be able to run this:
I checked str.c for the call to vsf_sysutil_extra() if the user is specified as and I also checked for the rogue shellcode in sysdeputil.c but I didn't find it, so it looks like the backdoor was uploaded recently.
[URL]
Quote:
Chris Evans, aka Scary Beasts, has confirmed that version 2.3.4 of vsftpd's downloadable source code was compromised and a backdoor added to the code. Evans, the author of vsftpd - which is described on its web site as "probably the most secure and fastest FTP server for Unix-like systems" - was alerted on Sunday to the fact that a bad tarball had been downloaded from the vsftpd master site with an invalid GPG signature. It is not known how long the bad code had been online.
The bad tarball included a backdoor in the code which would respond to a user logging in with a user name "" by listening on port 6200 for a connection and launching a shell when someone connects.Evans has now moved the source code and site to [URL] a Google App Engine hosted site. The GPL-licensed source code can be downloaded (direct download) from the same site, along with the GPG signature for validating the download, a step that Evans recommends. Evans says that the lack of obfuscation and lack of victim identification leads him to believe that "perhaps someone was just having some lulz instead of seriously trying to cause trouble".
I am facing problem on executing commands like df -h,ls-l,grep etc in /bin.
it is showing below errors:-- ---------------------------------------------------------------------------------- login as: root root@220.226.102.217's password: Last login: Sat Jun 4 11:14:20 2011 from 220.227.54.149 -bash: /bin/egrep: cannot execute binary file
I installed VSFTPD but when logging ( at command line or browser ) at any user always :
[root@srv vsftpd]# ftp 172.16.0.3 Connected to 172.16.0.3. 220 (vsFTPd 2.0.5) 530 Please login with USER and PASS. 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type Name (172.16.0.3:root): system
Before installing Fedora on my laptop I backed up my files onto a USB key. I wiped the hard disk and installed Fedora 12. I copied my files back to my home directory - but all the text files are now binary! Any ideas why this would be or how to fix it??---------- Post added at 10:54 AM CST ---------- Previous post was at 10:35 AM CST ----------Hmm it seems that only some files are binary. Looks like some .tgz files are corrupted too.---------- Post added at 11:02 AM CST ---------- Previous post was at 10:54 AM CST ----------Damn - I wonder if the files weren't completely written to the usb key before I removed it. I don't remember their being a safe mount option in Fedora 10 - but I definitely unmounted it before removing it from the laptop.
I would like to install a program (R for statistical computing). I am using Slackware. On the download page of R (The Comprehensive R Archive Network) there are options to download the code for Debian, Redhat, Suse, and Ubuntu. Which one should I download in my case (using Slackware)? Is there any of them which I should not download?
Has anyone ever managed to get SCO binaries to run under Centos 5? I have an application which runs on SCO and SCO is becoming difficult to support so I want to copy the binaries over onto Linux and run them.
edit unzip binary file to fix a security issue with cpanel?i tried hex editior but i canot understand the file codes!iam a basic php scripter and pwn but i canot understand this its just numbers and strange characters!......................45..................5......@#........ like this
I open "man vsftpd.conf", it says syslog_enable If enabled, then any log output which would have gone o /var/log/vsftpd.log goes to the system log instead. Logging is done under the FTPD facility. Default: NO So I add "syslog_enable=YES" to the /etc/vsftpd.conf, and add "ftpd.* /var/log/ftplog" into /etc/syslog.conf. But there is no log infomation in the ftplog file.
I'm still learning my way around CentOS and linux in general... Using CentOS 5.4
BUT, I used the scripts from HowTo/Chroot Vsftpd and it did not work with the non-TLS script config, but the with TSL worked great. I wasn't sure where to put the vsftpd_virtualuser_config.tpl file but I copied it over when the script failed to find it... to where it was looking.
So I think it's working but my question is, TLS doesn't use port 21 but the script defaults to that port. I'm using FileZilla from an XP machine at work and I'm forwarding all the ports given in the HowTo. So I'm forcing the client to use TLS on port 21 but it hangs on the connection. If I use non TLS I get in but it tells me it requires TSL. I've had no luck with vsftpd in the past and this is my next attempt.
I recently got a hosted CentOS 5.5 box at a server farm to run a small ftp server for me.
They preloaded the image and installed a .86_64 build of 5.5, and I've only been familiar with i386.
I didn't think there'd be much of an issue from this, but I've gone thru all the normal steps to install and configure VSFTPD, however nothing is working.
I'm running CentOS release 5.5 (Final)
and I've gotten VSFTPD build 2.0.5 release 16.e15_5.1 installed from both yum and rpm (at separate times) and I've also tried grabbing the tar ball of 2.3.2 and 2.3.4, but run into dependency issues when compiling the code using GCC (it wasnt installed the first time).
i've started and made vsftpd persistent using service vsftpd start, chkconfig vsftpd on, and i restart the service after any changes to the conf file.
I'm trying to run the following settings. in /etc/vsftpd/vsftpd.conf
# 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.
I've only recently encountered this problem with vsftpd when I was creating new ftp accounts. I keep on getting:
550 Access Denied.
on every action I try to do on ftp, no matter what. I've been trying to solve this myself however my attempts have been futile.
The permissions, and ownership have been checked and rechecked tens of times now, so thats not the issue. I've reinstalled the OS of my server twice now, and the problem is still persisting. Heres my config file, this isnt for anon by the way.
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. #
I already have this setup working in a debian server but I would like to setup the same in CentOS 5.3. I just copied all the configuration files to the CentOS server but I'm getting the following errors in messages:
vsftpd: nss_ldap: reconnecting to LDAP server (sleeping 64 seconds)... vsftpd: nss_ldap: reconnecting to LDAP server (sleeping 64 seconds)... crond[24483]: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)... crond[24483]: nss_ldap: reconnecting to LDAP server (sleeping 8 seconds)... crond[24483]: nss_ldap: reconnecting to LDAP server (sleeping 16 seconds)... crond[24483]: nss_ldap: reconnecting to LDAP server (sleeping 32 seconds)...
I thought someone might find this useful and not have to lose a day for getting it work... (as I did)...
so this is a Tutorial HowTo based on Virtual Hosting With vsftpd And MySQL On Debian Etch but with modifications needed to work on CentOS 5 (in my case it was CentOS 5.4 x86 32bit).
You will need (if not already installed): yum install vsftpd mysql-server
I set up my vsftpd server, but when using "sftp servername" it's not using vsftpd but another (what seems like) built-in sftp server. Even when I stop the vsftpd service I am still able to get a prompt to log in. I haven't installed any other ftp servers.