pdbedit |
This program, new to Samba 3.0, can be used to manage accounts that are held in a SAM database. The implementation of the database can be any of the types supported by Samba, including the smbpasswd file, LDAP, NIS+ and the tdb database library. The user must be the superuser to use this tool.
pdbedit [options]
Adds the user specified by the -u option to the SAM database. The command issues a prompt for the user's password.
Sets the Windows drive letter to which to map the user's home directory. The drive letter should be specified as a letter followed by a colon e.g., H :.
Sets the debug (sometimes called logging) level. The level can range from 0 to 10. Debug level 0 logs only the most important messages. Level 1 is normal, and levels 3 and above are primarily for debugging.
Exports the user account database to another format, written to the specified location. Used for migrating from one type of account database to another. The pwdb_backend argument is specified in the format of a database type, followed by a colon, then the location of the database. For example, to export the existing account database to an smbpasswd database in the file /usr/local/samba/private/smbpw , pwdb_backend would be specified as smbpasswd:/usr/local/samba/private/smbpw . The allowable database types are smbpasswd , smbpasswd nua , tdbsam , tdbsam nua , ldapsam , ldapsam_nua , and plugin .
Sets the full name of the user specified with the -u option.
Sets the home directory path (as a UNC) for the user specified with the -u option.
Specifies a password database backend from which to retrieve account information, overriding the one specified by the passdb backend parameter in the Samba configuration file. This, along with the -e option, is useful for migrating user accounts from one type of account database to another. See the -e option regarding how to specify the pwdb_backend argument.
Lists the user accounts in the database. See also the -v option.
Indicates that the account is a computer account rather than a user account. Used only with the -a option when creating the account. In this case, the -u option specifies the computer name rather than a username.
Sets the directory in which the user's profile is kept. The directory is specified as a UNC.
Specifies the UNC of the user's logon script.
Specifies the username of the account to add (with the -a option), delete (with the -x option), or modify.
Selects verbose mode when listing accounts with the -l option. The account fields will be printed.
Selects the smbpasswd listing mode, for use with the -l option, which prints information in the same format as it would appear in an smbpasswd file.
Deletes the user (specified with the -u option) from the account database.