Checking compile time options

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.
LVL 1
wfaleiroAsked:
Who is Participating?
 
sunnycoderCommented:
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
 
sunnycoderCommented:
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
 
wfaleiroAuthor Commented:
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
wfaleiroAuthor Commented:
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
 
sunnycoderCommented:
launch it as

/usr/local/sbin/vsftpd /etc/vsftpd.conf
0
 
wfaleiroAuthor Commented:
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
 
sunnycoderCommented:
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
 
wfaleiroAuthor Commented:
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
 
sunnycoderCommented:
stop the vsftpd deamon ... start it as

/usr/local/sbin/vsftpd /path/to/your/vsftpd.conf
0
 
wfaleiroAuthor Commented:
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
 
sunnycoderCommented:
yes you can
0
 
wfaleiroAuthor Commented:
Hi Sunny,
Currently I am getting this error

500 OOPS: could not bind listening IPv4 socket
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.