LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   net join ads command (https://www.linuxquestions.org/questions/linux-networking-3/net-join-ads-command-294423/)

Steve1445 02-24-2005 02:24 PM

net join ads command
 
Trying to join a RH 9.0 box with Samba 3.0 and KBR5 on it to a Win2K domain. Seem to be making headway however when I use the net command from the /usr/local/samba/sbin folder or anywhere else it always comes back with a net: command not found. I know that I must be typing this wrong, or something , anyone care to set me straight?

cowanrl 02-24-2005 05:11 PM

It really depends on how you installed Samba. I'm using RH9 and installed Samba from an RPM I downloaded via the Samba.org site. I have net in /usr/bin.
You can always try:

find / -name net

and see if you can find the net command. If it doesn't find it anywhere, something must have gone wrong with your install. I'd try a re-install of Samba.

Steve1445 02-24-2005 06:30 PM

thanks for the reply
 
I have the net command and am launching the command directly out of the bin folder under Samba. Did the install just like you did, but the net command does nada. Just returns an error.

cowanrl 02-25-2005 05:53 AM

If it's always returning a command not found error even when your current directory is the directory where net is located, perhaps you have a problem with your PATH. Linux, unlike windows, will not automatically look in the current directory for a command you execute unless it is in your PATH.

From the current directory where net is located, execute:

./net [options]

and see if that works.

You can also try to use the complete path to net such as:

/usr/bin/net [options]

Steve1445 02-25-2005 07:44 AM

worked
 
That did the trick, using ./ before the net command. Something simple yet vital. Thanks again.


All times are GMT -5. The time now is 04:36 AM.