Tu as une serie de commandes net ...
NAME
net - Tool for administration of Samba and remote CIFS servers.
SYNOPSIS
net {<ads|rap|rpc>} [-h] [-w workgroup] [-W myworkgroup] [-U user] [-I ip-address] [-p port]
[-n myname] [-s conffile] [-S server] [-l] [-P] [-d debuglevel] [-V]
DESCRIPTION
This tool is part of the samba(7) suite.
The samba net utility is meant to work just like the net utility available for windows and
DOS. The first argument should be used to specify the protocol to use when executing a cer-
tain 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 deter-
mine it automatically. Not all commands are available on all protocols.
[drpixel@phoenix ~]$ net
Usage:
Usage:
net time to view or set time information
net lookup to lookup host name or ip address
net user to manage users
net group to manage groups
net sam to edit the local user database directly
net lookup to look up various things
net groupmap to manage group mappings
net join to join a domain
net cache to operate on cache tdb file
net getlocalsid [NAME] to get the SID for local name
net setlocalsid SID to set the local domain SID
net setdomainsid SID to set the domain SID on member servers
net changesecretpw to change the machine password in the local secrets database only
this requires the -f flag as a safety barrier
net status Show server status
net usersidlist to get a list of all users with their SIDs
net usershare to add, delete and list locally user-modifiable shares
net ads <command> to run ADS commands
net rap <command> to run RAP (pre-RPC) commands
net rpc <command> to run RPC commands
Type "net help <option>" to get more information on that option
Valid targets: choose one (none defaults to localhost)
-S or --server=<server> server name
-I or --ipaddress=<ipaddr> address of target server
-w or --workgroup=<wg> target workgroup or domain
Valid miscellaneous options are:
-p or --port=<port> connection port on target
-W or --myworkgroup=<wg> client workgroup
-d or --debuglevel=<level> debug level (0-10)
-n or --myname=<name> client name
-U or --user=<name> user name
-s or --configfile=<path> pathname of smb.conf file
-l or --long Display full information
-V or --version Print samba version information
-P or --machine-pass Authenticate as machine account
[drpixel@phoenix ~]$ net rpc
Usage:
net rpc info show basic info about a domain
net rpc join to join a domain
net rpc oldjoin to join a domain created in server manager
net rpc testjoin tests that a join is valid
net rpc user to add, delete and list users
net rpc password <username> [<password>] -Uadmin_username%admin_pass
net rpc group to list groups
net rpc share to add, delete, list and migrate shares
net rpc printer to list and migrate printers
net rpc file to list open files
net rpc changetrustpw to change the trust account password
net rpc getsid fetch the domain sid into the local secrets.tdb
net rpc vampire syncronise an NT PDC's users and groups into the local passdb
net rpc samdump diplay an NT PDC's users, groups and other data
net rpc trustdom to create trusting domain's account or establish trust
net rpc abortshutdown to abort the shutdown of a remote server
net rpc shutdown to shutdown a remote server
net rpc rights to manage privileges assigned to SIDs
net rpc registry to manage registry hives
net rpc service to start, stop and query services
net rpc audit to modify global auditing settings
net rpc shell to open an interactive shell for remote server/account management
'net rpc shutdown' also accepts the following miscellaneous options:
-r or --reboot request remote server reboot on shutdown
-f or --force request the remote server force its shutdown
-t or --timeout=<timeout> number of seconds before shutdown
-C or --comment=<message> text message to display on impending shutdown
Pour plus d'infos regardes le man.