We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Checking compile time options

wfaleiro
wfaleiro asked
on
Medium Priority
269 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.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2006

Commented:
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

Author

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

Author

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
CERTIFIED EXPERT
Top Expert 2006

Commented:
launch it as

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

Author

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.
CERTIFIED EXPERT
Top Expert 2006

Commented:
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.

Author

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
CERTIFIED EXPERT
Top Expert 2006

Commented:
stop the vsftpd deamon ... start it as

/usr/local/sbin/vsftpd /path/to/your/vsftpd.conf

Author

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
CERTIFIED EXPERT
Top Expert 2006

Commented:
yes you can

Author

Commented:
Hi Sunny,
Currently I am getting this error

500 OOPS: could not bind listening IPv4 socket
CERTIFIED EXPERT
Top Expert 2006
Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.