<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=PDBEDIT_-_Manpage</id>
	<title>PDBEDIT - Manpage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=PDBEDIT_-_Manpage"/>
	<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=PDBEDIT_-_Manpage&amp;action=history"/>
	<updated>2026-05-02T18:38:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://it-arts.net/index.php?title=PDBEDIT_-_Manpage&amp;diff=1033&amp;oldid=prev</id>
		<title>Admin: Text replacement - &quot;Category:Wiki&quot; to &quot;Category:Wiki

&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;
&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=PDBEDIT_-_Manpage&amp;diff=1033&amp;oldid=prev"/>
		<updated>2026-01-17T08:20:38Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;&amp;quot; to &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:20, 17 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://it-arts.net/index.php?title=PDBEDIT_-_Manpage&amp;diff=356&amp;oldid=prev</id>
		<title>Admin: Text replacement - &quot;Category:Post-It&quot; to &quot;Category:Wiki&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=PDBEDIT_-_Manpage&amp;diff=356&amp;oldid=prev"/>
		<updated>2025-12-09T07:13:20Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&lt;a href=&quot;/index.php?title=Category:Post-It&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Post-It (page does not exist)&quot;&gt;Category:Post-It&lt;/a&gt;&amp;quot; to &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:13, 9 December 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Post-It&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Wiki&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://it-arts.net/index.php?title=PDBEDIT_-_Manpage&amp;diff=134&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Category:Post-It   == pdbedit Manpage ==   &lt;nowiki&gt; PDBEDIT(8)                                                                               System Administration tools                                                                               PDBEDIT(8)  NAME        pdbedit - manage the SAM database (Database of Samba Users)  SYNOPSIS        pdbedit [-a] [-b passdb-backend] [-c account-control] [-C value] [-d debuglevel] [-D drive] [-e passdb-backend] [-f fullnam...&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=PDBEDIT_-_Manpage&amp;diff=134&amp;oldid=prev"/>
		<updated>2024-10-27T07:32:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php?title=Category:Post-It&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Post-It (page does not exist)&quot;&gt;Category:Post-It&lt;/a&gt;   == pdbedit Manpage ==   &amp;lt;nowiki&amp;gt; PDBEDIT(8)                                                                               System Administration tools                                                                               PDBEDIT(8)  NAME        pdbedit - manage the SAM database (Database of Samba Users)  SYNOPSIS        pdbedit [-a] [-b passdb-backend] [-c account-control] [-C value] [-d debuglevel] [-D drive] [-e passdb-backend] [-f fullnam...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Post-It]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== pdbedit Manpage ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
PDBEDIT(8)                                                                               System Administration tools                                                                               PDBEDIT(8)&lt;br /&gt;
&lt;br /&gt;
NAME&lt;br /&gt;
       pdbedit - manage the SAM database (Database of Samba Users)&lt;br /&gt;
&lt;br /&gt;
SYNOPSIS&lt;br /&gt;
       pdbedit [-a] [-b passdb-backend] [-c account-control] [-C value] [-d debuglevel] [-D drive] [-e passdb-backend] [-f fullname] [--force-initialized-passwords] [-g] [-h homedir] [-i passdb-backend]&lt;br /&gt;
        [-I domain] [-K] [-L] [-m] [-M SID|RID] [-N description] [-P account-policy] [-p profile] [--policies-reset] [-r] [-s configfile] [-S script] [--set-nt-hash] [-t] [--time-format] [-u username]&lt;br /&gt;
        [-U SID|RID] [-v] [-V] [-w] [-x] [-y] [-z] [-Z]&lt;br /&gt;
&lt;br /&gt;
DESCRIPTION&lt;br /&gt;
       This tool is part of the samba(7) suite.&lt;br /&gt;
&lt;br /&gt;
       The pdbedit program is used to manage the users accounts stored in the sam database and can only be run by root.&lt;br /&gt;
&lt;br /&gt;
       The pdbedit tool uses the passdb modular interface and is independent from the kind of users database used (currently there are smbpasswd, ldap, nis+ and tdb based and more can be added without&lt;br /&gt;
       changing the tool).&lt;br /&gt;
&lt;br /&gt;
       There are five main ways to use pdbedit: adding a user account, removing a user account, modifying a user account, listing user accounts, importing users accounts.&lt;br /&gt;
&lt;br /&gt;
OPTIONS&lt;br /&gt;
       -L|--list&lt;br /&gt;
           This option lists all the user accounts present in the users database. This option prints a list of user/uid pairs separated by the &amp;#039;:&amp;#039; character.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -L&lt;br /&gt;
&lt;br /&gt;
               sorce:500:Simo Sorce&lt;br /&gt;
               samba:45:Test User&lt;br /&gt;
&lt;br /&gt;
       -v|--verbose&lt;br /&gt;
           This option enables the verbose listing format. It causes pdbedit to list the users in the database, printing out the account fields in a descriptive format. Used together with -w also shows&lt;br /&gt;
           passwords hashes.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -L -v&lt;br /&gt;
&lt;br /&gt;
               ---------------&lt;br /&gt;
               username:       sorce&lt;br /&gt;
               user ID/Group:  500/500&lt;br /&gt;
               user RID/GRID:  2000/2001&lt;br /&gt;
               Full Name:      Simo Sorce&lt;br /&gt;
               Home Directory: \\BERSERKER\sorce&lt;br /&gt;
               HomeDir Drive:  H:&lt;br /&gt;
               Logon Script:   \\BERSERKER\netlogon\sorce.bat&lt;br /&gt;
               Profile Path:   \\BERSERKER\profile&lt;br /&gt;
               ---------------&lt;br /&gt;
               username:       samba&lt;br /&gt;
               user ID/Group:  45/45&lt;br /&gt;
               user RID/GRID:  1090/1091&lt;br /&gt;
               Full Name:      Test User&lt;br /&gt;
               Home Directory: \\BERSERKER\samba&lt;br /&gt;
               HomeDir Drive:&lt;br /&gt;
               Logon Script:&lt;br /&gt;
               Profile Path:   \\BERSERKER\profile&lt;br /&gt;
&lt;br /&gt;
       -w|--smbpasswd-style&lt;br /&gt;
           This option sets the &amp;quot;smbpasswd&amp;quot; listing format. It will make pdbedit list the users in the database, printing out the account fields in a format compatible with the smbpasswd file format. (see&lt;br /&gt;
           the smbpasswd(5) for details). Instead used together with (-v) displays the passwords hashes in verbose output.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -L -w&lt;br /&gt;
&lt;br /&gt;
               sorce:500:508818B733CE64BEAAD3B435B51404EE:&lt;br /&gt;
                         D2A2418EFC466A8A0F6B1DBB5C3DB80C:&lt;br /&gt;
                         [UX         ]:LCT-00000000:&lt;br /&gt;
               samba:45:0F2B255F7B67A7A9AAD3B435B51404EE:&lt;br /&gt;
                         BC281CE3F53B6A5146629CD4751D3490:&lt;br /&gt;
                         [UX         ]:LCT-3BFA1E8D:&lt;br /&gt;
&lt;br /&gt;
       -u|--user username&lt;br /&gt;
           This option specifies the username to be used for the operation requested (listing, adding, removing). It is required in add, remove and modify operations and optional in list operations.&lt;br /&gt;
&lt;br /&gt;
       -f|--fullname fullname&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will specify the user&amp;#039;s full name.&lt;br /&gt;
&lt;br /&gt;
           Example: -f &amp;quot;Simo Sorce&amp;quot;&lt;br /&gt;
&lt;br /&gt;
       -h|--homedir homedir&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will specify the user&amp;#039;s home directory network path.&lt;br /&gt;
&lt;br /&gt;
           Example: -h &amp;quot;\\\\BERSERKER\\sorce&amp;quot;&lt;br /&gt;
&lt;br /&gt;
       -D|--drive drive&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will specify the windows drive letter to be used to map the home directory.&lt;br /&gt;
&lt;br /&gt;
           Example: -D &amp;quot;H:&amp;quot;&lt;br /&gt;
&lt;br /&gt;
       -S|--script script&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will specify the user&amp;#039;s logon script path.&lt;br /&gt;
&lt;br /&gt;
           Example: -S &amp;quot;\\\\BERSERKER\\netlogon\\sorce.bat&amp;quot;&lt;br /&gt;
&lt;br /&gt;
       --set-nt-hash&lt;br /&gt;
           This option can be used while modifying a user account. It will set the user&amp;#039;s password using the nt-hash value given as hexadecimal string. Useful to synchronize passwords.&lt;br /&gt;
&lt;br /&gt;
           Example: --set-nt-hash 8846F7EAEE8FB117AD06BDD830B7586C&lt;br /&gt;
&lt;br /&gt;
       -p|--profile profile&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will specify the user&amp;#039;s profile directory.&lt;br /&gt;
&lt;br /&gt;
           Example: -p &amp;quot;\\\\BERSERKER\\netlogon&amp;quot;&lt;br /&gt;
&lt;br /&gt;
       -M|&amp;#039;--machine SID&amp;#039; SID|rid&lt;br /&gt;
           This option can be used while adding or modifying a machine account. It will specify the machines&amp;#039; new primary group SID (Security Identifier) or rid.&lt;br /&gt;
&lt;br /&gt;
           Example: -M S-1-5-21-2447931902-1787058256-3961074038-1201&lt;br /&gt;
&lt;br /&gt;
       -U|&amp;#039;--user SID&amp;#039; SID|rid&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will specify the users&amp;#039; new SID (Security Identifier) or rid.&lt;br /&gt;
&lt;br /&gt;
           Example: -U S-1-5-21-2447931902-1787058256-3961074038-5004&lt;br /&gt;
&lt;br /&gt;
           Example: &amp;#039;--user SID&amp;#039; S-1-5-21-2447931902-1787058256-3961074038-5004&lt;br /&gt;
&lt;br /&gt;
           Example: -U 5004&lt;br /&gt;
&lt;br /&gt;
           Example: &amp;#039;--user SID&amp;#039; 5004&lt;br /&gt;
&lt;br /&gt;
       -c|--account-control account-control&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will specify the users&amp;#039; account control property. Possible flags are listed below.&lt;br /&gt;
&lt;br /&gt;
                  •   N: No password required&lt;br /&gt;
&lt;br /&gt;
                  •   D: Account disabled&lt;br /&gt;
&lt;br /&gt;
                  •   H: Home directory required&lt;br /&gt;
&lt;br /&gt;
                  •   T: Temporary duplicate of other account&lt;br /&gt;
&lt;br /&gt;
                  •   U: Regular user account&lt;br /&gt;
&lt;br /&gt;
                  •   M: MNS logon user account&lt;br /&gt;
&lt;br /&gt;
                  •   W: Workstation Trust Account&lt;br /&gt;
&lt;br /&gt;
                  •   S: Server Trust Account&lt;br /&gt;
&lt;br /&gt;
                  •   L: Automatic Locking&lt;br /&gt;
&lt;br /&gt;
                  •   X: Password does not expire&lt;br /&gt;
&lt;br /&gt;
                  •   I: Domain Trust Account&lt;br /&gt;
&lt;br /&gt;
           Example: -c &amp;quot;[X ]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
       -K|--kickoff-time&lt;br /&gt;
           This option is used to modify the kickoff time for a certain user. Use &amp;quot;never&amp;quot; as argument to set the kickoff time to unlimited.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -K never user&lt;br /&gt;
&lt;br /&gt;
       -a|--create&lt;br /&gt;
           This option is used to add a user into the database. This command needs a user name specified with the -u switch. When adding a new user, pdbedit will also ask for the password to be used.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -a -u sorce&lt;br /&gt;
&lt;br /&gt;
               new password:&lt;br /&gt;
               retype new password&lt;br /&gt;
&lt;br /&gt;
               Note&lt;br /&gt;
               pdbedit does not call the unix password synchronization script if unix password sync has been set. It only updates the data in the Samba user database.&lt;br /&gt;
&lt;br /&gt;
               If you wish to add a user and synchronise the password that immediately, use smbpasswd&amp;#039;s -a option.&lt;br /&gt;
&lt;br /&gt;
       -t|--password-from-stdin&lt;br /&gt;
           This option causes pdbedit to read the password from standard input, rather than from /dev/tty (like the passwd(1) program does). The password has to be submitted twice and terminated by a&lt;br /&gt;
           newline each.&lt;br /&gt;
&lt;br /&gt;
       -r|--modify&lt;br /&gt;
           This option is used to modify an existing user in the database. This command needs a user name specified with the -u switch. Other options can be specified to modify the properties of the&lt;br /&gt;
           specified user. This flag is kept for backwards compatibility, but it is no longer necessary to specify it.&lt;br /&gt;
&lt;br /&gt;
       -m|--machine&lt;br /&gt;
           This option may only be used in conjunction with the -a option. It will make pdbedit to add a machine trust account instead of a user account (-u username will provide the machine name).&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -a -m -u w2k-wks&lt;br /&gt;
&lt;br /&gt;
       -x|--delete&lt;br /&gt;
           This option causes pdbedit to delete an account from the database. It needs a username specified with the -u switch.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -x -u bob&lt;br /&gt;
&lt;br /&gt;
       -i|--import passdb-backend&lt;br /&gt;
           Use a different passdb backend to retrieve users than the one specified in smb.conf. Can be used to import data into your local user database.&lt;br /&gt;
&lt;br /&gt;
           This option will ease migration from one passdb backend to another.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -i smbpasswd:/etc/smbpasswd.old&lt;br /&gt;
&lt;br /&gt;
       -e|--export passdb-backend&lt;br /&gt;
           Exports all currently available users to the specified password database backend.&lt;br /&gt;
&lt;br /&gt;
           This option will ease migration from one passdb backend to another and will ease backing up.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -e smbpasswd:/root/samba-users.backup&lt;br /&gt;
&lt;br /&gt;
       -g|--group&lt;br /&gt;
           If you specify -g, then -i in-backend -e out-backend applies to the group mapping instead of the user database.&lt;br /&gt;
&lt;br /&gt;
           This option will ease migration from one passdb backend to another and will ease backing up.&lt;br /&gt;
&lt;br /&gt;
       -b|--backend passdb-backend&lt;br /&gt;
           Use a different default passdb backend.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -b xml:/root/pdb-backup.xml -l&lt;br /&gt;
&lt;br /&gt;
       -P|--account-policy account-policy&lt;br /&gt;
           Display an account policy&lt;br /&gt;
&lt;br /&gt;
           Valid policies are: minimum password age, reset count minutes, disconnect time, user must logon to change password, password history, lockout duration, min password length, maximum password age&lt;br /&gt;
           and bad lockout attempt.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -P &amp;quot;bad lockout attempt&amp;quot;&lt;br /&gt;
&lt;br /&gt;
               account policy value for bad lockout attempt is 0&lt;br /&gt;
&lt;br /&gt;
       -C|--value account-policy-value&lt;br /&gt;
           Sets an account policy to a specified value. This option may only be used in conjunction with the -P option.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -P &amp;quot;bad lockout attempt&amp;quot; -C 3&lt;br /&gt;
&lt;br /&gt;
               account policy value for bad lockout attempt was 0&lt;br /&gt;
               account policy value for bad lockout attempt is now 3&lt;br /&gt;
&lt;br /&gt;
       -y|--policies&lt;br /&gt;
           If you specify -y, then -i in-backend -e out-backend applies to the account policies instead of the user database.&lt;br /&gt;
&lt;br /&gt;
           This option will allow one to migrate account policies from their default tdb-store into a passdb backend, e.g. an LDAP directory server.&lt;br /&gt;
&lt;br /&gt;
           Example: pdbedit -y -i tdbsam: -e ldapsam:ldap://my.ldap.host&lt;br /&gt;
&lt;br /&gt;
       --force-initialized-passwords&lt;br /&gt;
           This option forces all users to change their password upon next login.&lt;br /&gt;
&lt;br /&gt;
       -N|--account-desc description&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will specify the user&amp;#039;s description field.&lt;br /&gt;
&lt;br /&gt;
           Example: -N &amp;quot;test description&amp;quot;&lt;br /&gt;
&lt;br /&gt;
       -Z|--logon-hours-reset&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will reset the user&amp;#039;s allowed logon hours. A user may login at any time afterwards.&lt;br /&gt;
&lt;br /&gt;
           Example: -Z&lt;br /&gt;
&lt;br /&gt;
       -z|--bad-password-count-reset&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will reset the stored bad login counter from a specified user.&lt;br /&gt;
&lt;br /&gt;
           Example: -z&lt;br /&gt;
&lt;br /&gt;
       --policies-reset&lt;br /&gt;
           This option can be used to reset the general password policies stored for a domain to their default values.&lt;br /&gt;
&lt;br /&gt;
           Example: --policies-reset&lt;br /&gt;
&lt;br /&gt;
       -I|--domain&lt;br /&gt;
           This option can be used while adding or modifying a user account. It will specify the user&amp;#039;s domain field.&lt;br /&gt;
&lt;br /&gt;
           Example: -I &amp;quot;MYDOMAIN&amp;quot;&lt;br /&gt;
&lt;br /&gt;
       --time-format&lt;br /&gt;
           This option is currently not being used.&lt;br /&gt;
&lt;br /&gt;
       -?|--help&lt;br /&gt;
           Print a summary of command line options.&lt;br /&gt;
&lt;br /&gt;
       --usage&lt;br /&gt;
           Display brief usage message.&lt;br /&gt;
&lt;br /&gt;
       -d|--debuglevel=level&lt;br /&gt;
           level is an integer from 0 to 10. The default value if this parameter is not specified is 0.&lt;br /&gt;
&lt;br /&gt;
           The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a&lt;br /&gt;
           reasonable level for day-to-day running - it generates a small amount of information about operations carried out.&lt;br /&gt;
&lt;br /&gt;
           Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE&lt;br /&gt;
           amounts of log data, most of which is extremely cryptic.&lt;br /&gt;
&lt;br /&gt;
           Note that specifying this parameter here will override the log level parameter in the smb.conf file.&lt;br /&gt;
&lt;br /&gt;
       -V|--version&lt;br /&gt;
           Prints the program version number.&lt;br /&gt;
&lt;br /&gt;
       -s|--configfile=&amp;lt;configuration file&amp;gt;&lt;br /&gt;
           The file specified contains the configuration details required by the server. The information in this file includes server-specific information such as what printcap file to use, as well as&lt;br /&gt;
           descriptions of all the services that the server is to provide. See smb.conf for more information. The default configuration file name is determined at compile time.&lt;br /&gt;
&lt;br /&gt;
       -l|--log-basename=logdirectory&lt;br /&gt;
           Base directory name for log/debug files. The extension &amp;quot;.progname&amp;quot; will be appended (e.g. log.smbclient, log.smbd, etc...). The log file is never removed by the client.&lt;br /&gt;
&lt;br /&gt;
       --option=&amp;lt;name&amp;gt;=&amp;lt;value&amp;gt;&lt;br /&gt;
           Set the smb.conf(5) option &amp;quot;&amp;lt;name&amp;gt;&amp;quot; to value &amp;quot;&amp;lt;value&amp;gt;&amp;quot; from the command line. This overrides compiled-in defaults and options read from the configuration file.&lt;br /&gt;
&lt;br /&gt;
NOTES&lt;br /&gt;
       This command may be used only by root.&lt;br /&gt;
&lt;br /&gt;
VERSION&lt;br /&gt;
       This man page is part of version 4.9.5-Debian of the Samba suite.&lt;br /&gt;
&lt;br /&gt;
SEE ALSO&lt;br /&gt;
       smbpasswd(5), samba(7)&lt;br /&gt;
&lt;br /&gt;
AUTHOR&lt;br /&gt;
       The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is&lt;br /&gt;
       developed.&lt;br /&gt;
&lt;br /&gt;
       The pdbedit manpage was written by Simo Sorce and Jelmer Vernooij.&lt;br /&gt;
&lt;br /&gt;
Samba 4.9.5-Debian                                                                                04/22/2024                                                                                       PDBEDIT(8)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>