[K12OSN] Run script from any directory

Krsnendu dasa krsnendu at orcon.net.nz
Mon Feb 28 19:19:33 UTC 2005

Yes I am using the script (Please see my other post. [K12OSN] Logging into
windows XP machines using sameloginas	K12LTSP) and following the
instructions from step 18. The problem from the other text was the the
script didn't wait for the root smb password and authconfig failed. I did
the root smb password manually and when I ran authconfig using gui no

So far everything else is going pretty well. The steps are straightforward
and logical. Thanks.
It is just the ldap-commands part that is a bit annoying. I have worked out
how to keep going to the next steps, but it would be easier if the commands
could run from any directory.

When I get to the part that says getent passwd | grep root
Everything works fine. But when I type in 
#ldap-useradd -m -a username
I get the message command not found.
It seems that the script has not set up these commands from any directory
only from the directory in which they live.

-----Original Message-----
From: k12osn-bounces at redhat.com [mailto:k12osn-bounces at redhat.com] On Behalf
Of David Trask
Sent: Tuesday, 1 March 2005 7:32 a.m.
To: Support list for opensource software in schools.
Cc: 'Support list for opensource software in schools.'
Subject: Re: [K12OSN] Run script from any directory

"Support list for opensource software in schools." <k12osn at redhat.com> on
Monday, February 28, 2005 at 12:53 PM +0000 wrote:
>Very basic linux script question
>I am trying to install smbldap
>When I try to run ldap-useradd -m username 
>I get command not found message.
>It only works when I change to the directory where these scripts live and
>type   #./ldap-useradd -m username
>How can I change it so I can run it from any directory?

Are you using the smbldap-installer script?  If not, you should....makes
life a LOT easier.   Get it and the how-to here....

David N. Trask
Technology Teacher/Coordinator
Vassalboro Community School
dtrask at vcs.u52.k12.me.us

K12OSN mailing list
K12OSN at redhat.com
For more info see <http://www.k12os.org>

More information about the K12OSN mailing list