You are not logged in.

#1 2010-06-27 07:11:37

oiad
Member
Registered: 2010-03-02
Posts: 22

ntpd command points to wrong directory

I am having a problem with openntpd on a system that used to have ntp.  I think I have it all figured out but I just have realized that I have never really looked into what controls program commands.

My problem:

When I try and run:

[root@sytem ~]# ntpd -[whatever options]
-bash: /usr/bin/ntpd: No such file or directory/usr/bin

I have figured out that it is pointing at /usr/bin/ntpd which is the location for ntp.  Openntpd used /usr/sbin/ntpd.

If I run:

[root@sytem ~]# /usr/sbin/ntpd

it works correctly.  So I just need to find out how to change where it is directing the command 'ntpd'.  Any broader explanation that explains the system linux used to control program name locations would be great.

Thanks

Offline

#2 2010-06-27 09:09:48

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: ntpd command points to wrong directory

Linux does not care where your binaries are kept. It is your shell which locates them. In this case, look up PATH and COMMAND EXECUTION in bash's manual.

Also, isn't ntpd meant to be a daemon?


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB