There's a little bit of background to this question - it doesn't last long but is best if I explain everything properly;
Last night I went to set up an SVN repository on my CentOS / DirectAdmin setup - I went back to my notes and went to do a 'htpasswd -cm passwd myuser'.
I was logged in as root but I got 'command not found'? This had been working a couple weeks ago, when I first set up SVN.
So I did a whereis htpasswd and found it in /usr/bin/htpasswd. I did a which htpasswd and got this:
/usr/bin/which: no htpasswd in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/admin/bin)
Strange? I did a symbolic link from /usr/bin/htpasswd and now it works. Then later I went to go 'service httpd restart', but I had the exact same problem with 'service'.
What do you think has happened? Why might these have 'disappeared'?
What is the best way to set up 'service' again so that only the users 'root' and 'admin' can use it? It exists at /sbin/service