HP CIFS Server Administrator's Guide Version A.03.01.02 (5900-1766, September 2011)

$ pdbedit -?
Run the following command to create a Samba account for the user cifsuser1 in the group
cifsgrp with the home directory /home/cifsuser1. The pdbedit tool will prompt for input
of an initial user password.
$ pdbedit -a cifsuser1 -g cifsgrp -h /home/cifsuser1
Run the following command to delete a Samba account for the user cifsuser2:
$ pdbedit -x cifsuser2
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 94) 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
HP CIFS Management Tools 165