"sudo which slaptest" will tell you where in your PATH slaptest is. add that to
your root's PATH and it will work.


also, depending on you are invoking the root shell .profile might not be
executed at all.

On Fri, Oct 24, 2008 at 10:42:10AM +0200, [EMAIL PROTECTED] wrote:
> On 10/23/08, Almir Karic <[EMAIL PROTECTED]> wrote:
> > most likelly /usr/local/sbin is not in your root's PATH, do
> > PATH="$PATH:/usr/local/sbin" as root and slaptest should be found.
> 
> Would you kindly demonstrate a foolproof root's ~/.profile, since I
> wasn't able to figure the lines to do it permanently? Root's ~/.
> profile below. Thanks in advance.
> 
> # $OpenBSD: dot.profile,v 1.5 2005/03/30 21:18:33 millert Exp $
> #
> # sh/ksh initialization
> 
> PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
> export PATH
> : ${HOME='/root'}
> export HOME
> export 
> PKG_PATH=ftp://ftp.myopenbsdmirror.org/pub/OpenBSD/4.3/packages/i386/:ftp://myopenbsdmirror2.org/pub/OpenBSD/4.3/packages/i386/
> umask 022
> 
> if [ -x /usr/bin/tset ]; then
>        eval `/usr/bin/tset -sQ \?$TERM`
> fi

Reply via email to