?
Solved

Checking compile time options

Posted on 2006-11-02
12
Medium Priority
?
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
12 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 17856356
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
ID: 17856494
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
ID: 17856509
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 45

Expert Comment

by:sunnycoder
ID: 17856522
launch it as

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

Author Comment

by:wfaleiro
ID: 17856529
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
ID: 17856539
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
 
LVL 1

Author Comment

by:wfaleiro
ID: 17856554
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
ID: 17856677
stop the vsftpd deamon ... start it as

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

Author Comment

by:wfaleiro
ID: 17857474
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
ID: 17857480
yes you can
0
 
LVL 1

Author Comment

by:wfaleiro
ID: 17858048
Hi Sunny,
Currently I am getting this error

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

Accepted Solution

by:
sunnycoder earned 225 total points
ID: 17864155
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

743 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