Discussion:
smbadm: command not found
Sonia A.
2010-03-02 19:42:08 UTC
Permalink
Hello,

I am pretty new to opensolaris, but I've been searching the net for a few hours and can't seem to find an answer to my question.

I have installed OpenSolaris 2009.06 this morning on my VMWare Server 2 host and am trying to join the new opensolaris virtual machine to my windows 2003 domain (which is another VM, but my XP, 2000 and Ubuntu machines successfully joined the domain anyway).

But when I run [i]smbadm join -u {user.name} {domain.name}[/i], I get {bash: smbadm: command not found} as an answer.

cd /bin
/bin$ dit smb* to find all smb files, returns:

smbcacls smbclient smbcontrol smbcquotas smbget smbpasswd smbprofiles smbspool smbstatus smbtar smbtree smbutil

Is my installation faulty? How can I get smbadm? It's been years since I used a linux machine, and even rpm returns command not found even though I have the SUNWrpm package installed.

If I dig my domain name, it returns the correct IP, so there is no DNS problem.

Help? And thanks.
--
This message posted from opensolaris.org
Gary Gendel
2010-03-02 20:20:06 UTC
Permalink
Opensolaris doesn't use RPM. Instead it uses IPKG format (man pkg).

smbadm is located at /usr/sbin/smbadm.

Gary
--
This message posted from opensolaris.org
Sonia A.
2010-03-02 20:45:19 UTC
Permalink
Thank you Gary,

By logging in with root, I noticed a package named smbs which was not installed, and contained the smbadm that I was looking for.

Now on to joining my VM. Thanks again!
--
This message posted from opensolaris.org
Drew Balfour
2010-03-02 21:55:47 UTC
Permalink
Post by Sonia A.
But when I run [i]smbadm join -u {user.name} {domain.name}[/i], I get {bash: smbadm: command not found} as an answer.
cd /bin
smbcacls smbclient smbcontrol smbcquotas smbget smbpasswd smbprofiles smbspool smbstatus smbtar smbtree smbutil
Apart from smbutil, those are all part of the Samba suite. Which is
entirely different than the OpenSolaris smb implementation.

smbadm should be in /usr/sbin

# pkg search -l smbadm

should tell you this.

If that doesn't return anything, you don't have the OpenSolaris smb
package installed. (It should, because you have smbutil in /bin)

# pkg install pkg:/system/file-system/smb

should install it.

If you don't plan on using Samba, removing it might help avoid any
future confusion:

# pkg uninstall pkg:/service/network/samba

-Drew

Loading...