Solved

Checking compile time options

Posted on 2006-11-02
12
239 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
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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 75 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

#Citrix #POC #XenDesktop #vCenter #VMware #ESX
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
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.

856 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