net - Tool for administration of Samba and remote CIFS servers.SYNOPSIS net {<ads|rap|rpc>} [-h] [-wworkgroup] [-Wmyworkgroup] [-Uuser] [-Iip- address] [-pport] [-nmyname] [-sconffile] [-Sserver] [-l] [-P] [-dde- buglevel] [-V]DESCRIPTION This tool is part of the samba(7) suite. The samba net utility is meant to work just like the net utility avail- able for windows and DOS. The first argument should be used to specify the protocol to use when executing a certain command. ADS is used for ActiveDirectory, RAP is using for old (Win9x/NT3) clients and RPC can be used for NT4 and Windows 2000. If this argument is omitted, net will try to determine it automatically. Not all commands are available on all protocols....
sudo apt-get install samba libpam-smbpass