Solved

Checking compile time options

Posted on 2006-11-02
12
233 Views
Last Modified: 2012-05-05
Hi,
We have a vsftpd binary compiled from a source package.
I want to know what compile time options were used at the time of installation. Is there a way to find out the same.

Thanks,
--Walter.
0
Comment
Question by:wfaleiro
  • 6
  • 6
12 Comments
 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
Hi wfaleiro,

No ... Binary does not store information about all compile time options used ... it might be possible to get some relevant compile time options from the binary, e.g. if debugging information is built into it, then it was built with debug flags ... but compile time options for supressing warnings etc cannot be retrieved.

Cheers!
sunnycoder
0
 
LVL 1

Author Comment

by:wfaleiro
Comment Utility
Hi Sunny,
I am trying to configure vsftpd. By default a source installation looks for /etc/vsftpd.conf file. I need to change that so the daemon looks for /etc/vsftpd/vsftpd.conf file.

--W
0
 
LVL 1

Author Comment

by:wfaleiro
Comment Utility
currently the running daemon is

ps -ef | grep vsftpd
root      1424     1  0 Oct09 ?        00:00:11 /usr/local/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root      3744  3691  0 06:55 pts/0    00:00:00 grep vsftpd
0
 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
launch it as

/usr/local/sbin/vsftpd /etc/vsftpd.conf
0
 
LVL 1

Author Comment

by:wfaleiro
Comment Utility
Yes,
I can do that, but on the current system its not done. So just wanted to know if it could be set at compile time of vsftpd.
0
 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
No .. it would entail a change in source code ... That source code can be changed through command line options IF the developer chose to, is a different thing.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:wfaleiro
Comment Utility
Hi Sunny,
As I said, its currently running on a system from /etc/vsftpd/vsftpd.conf without any option given in the /xinetd.d/vsftpd file.
So there must be a way somewhere to specify that it takes the settings from /etc/vsftpd/vsftpd.conf instead of /etc/vsftpd.conf.

Thanks,
--Walter
0
 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
stop the vsftpd deamon ... start it as

/usr/local/sbin/vsftpd /path/to/your/vsftpd.conf
0
 
LVL 1

Author Comment

by:wfaleiro
Comment Utility
Okay,
So instead of the setting /

/usr/local/sbin/vsftpd in the /etc/xinetd.d/vsftp file

Can I give

/usr/local/sbin/vsftpd /etc/vsftp/vsftp.conf ?


--Walter
0
 
LVL 45

Expert Comment

by:sunnycoder
Comment Utility
yes you can
0
 
LVL 1

Author Comment

by:wfaleiro
Comment Utility
Hi Sunny,
Currently I am getting this error

500 OOPS: could not bind listening IPv4 socket
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 75 total points
Comment Utility
Seems like the socket being used by the deamon is in use ... Most likely reason being that you forgot to stop the previous running instance before trying to run it again?

Run a netstat -a command to verify who is listening on port 21
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction How to create multiboot configuration with XP\Vista and Windows 7 on it? And most important question - how to do this correctly so not to have any kind of nightmares we get when system gets screwed? First of all one should realize t…
Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now