HP CIFS Server 3.0k Administrator's Guide version A.02.04

net
This tool is used for administration of Samba and remote CIFS servers. The Samba net utility
is meant to work just like the net utility available for windows and DOS. The first argument of
the net utility is used to specify the protocol to use when executing the net command. The
argument can be ADS, RAP or RPC. ADS is used for Windows Active Directory, RAP is used
for old Windows clients (Win9x/NT3) and RPC can be used for DCE-RPC.
The net tool performs its operations on the LDAP directory if the smb.conf passdb backend
parameter is set to ldapsam:ldap://<LDAP server name>.
If you manage user accounts in an LDAP directory, a POSIX user account must already exists in
the LDAP directory before you run the net rpc user add command to add the corresponding
Samba user and its sambaSamAccount information required for HP CIFS Server user
authentication.
If the POSIX user does not already exist in the LDAP directory server, you must first add the
POSIX user entry with the LDAP directory tools (such as ldapmodify). You can use the
ldapmodify tool to add, modify or delete a POSIX user in an LDAP directory server. See the
“Creating Samba Users in the Directory” (page 105) section in Chapter 6 “LDAP Integration
Support” for more information on how to add the POSIX user account to an LDAP directory
server.
There are many net commands. This section describes a portion of the available commands.
This section only describes syntaxes for the net rpc user command that you can use to manage
Samba user account database. For a more complete description of how to use the net commands
and syntaxes, refer to the net man page, SWAT, net help text or The Official Samba HOWTO and
Reference Guide.
Net Commands
The following is a partial description of the net commands.
For detailed information on a specified command and its syntax, use net help <command
option>.
net time
Displays or set time information.
net lookup
Lookups the IP address or host name for a specified host.
net user
Manages users.
net group
Manages groups.
net groupmap
Manages group mappings.
net idmap
Manages the idmap id mappings.
net join
Joins a CIFS server to a domain.
net cache
Operates on cache Trivial Database (tdb) file.
net getlocalsid [domain]
Displays the domain SID for the specified domain. If the
[domain] parameter is not specified, The SID of the
domain the local CIFS server is in.
net setlocalsid
Sets the local domain SID.
net changesecretpw
This command allows the Samba machine account
password to be set from an external application to a
machine account password that has already been stored
in a Windows Active Directory. Do not use this command
unless you know exactly what you are doing. The use of
this command requires that the force flag (-f) is used also.
There will be no command prompt. Whatever information
is input into stdin is stored as the literal machine password.
196 Tool Reference