7 CONTENT=
"Modular DocBook HTML Stylesheet Version 1.57"></HEAD
27 >pdbedit
--
manage the SAM database
</DIV
29 CLASS=
"REFSYNOPSISDIV"
39 > [-l] [-v] [-w] [-u username] [-f fullname] [-h homedir] [-d drive] [-s script] [-p profile] [-a] [-m] [-x] [-i file]
</P
49 >This tool is part of the
<A
55 >The pdbedit program is used to manage the users accounts
56 stored in the sam database and can be run only by root.
</P
58 >The pdbedit tool use the passdb modular interface and is
59 independent from the kind of users database used (currently there
60 are smbpasswd, ldap, nis+ and tdb based and more can be addedd
61 without changing the tool).
</P
63 >There are five main ways to use pdbedit: adding a user account,
64 removing a user account, modifing a user account, listing user
65 accounts, importing users accounts.
</P
83 >This option list all the user accounts
84 present in the users database.
85 This option prints a list of user/uid pairs separated by
100 CLASS=
"PROGRAMLISTING"
101 > sorce:
500:Simo Sorce
113 >This option sets the verbose listing format.
114 It will make pdbedit list the users in the database printing
115 out the account fields in a descriptive format.
</P
129 CLASS=
"PROGRAMLISTING"
132 user ID/Group:
500/
500
133 user RID/GRID:
2000/
2001
134 Full Name: Simo Sorce
135 Home Directory: \\BERSERKER\sorce
137 Logon Script: \\BERSERKER\netlogon\sorce.bat
138 Profile Path: \\BERSERKER\profile
142 user RID/GRID:
1090/
1091
144 Home Directory: \\BERSERKER\samba
147 Profile Path: \\BERSERKER\profile
158 >This option sets the
"smbpasswd" listing format.
159 It will make pdbedit list the users in the database printing
160 out the account fields in a format compatible with the
164 > file format. (see the
<A
165 HREF=
"smbpasswd.5.html"
185 CLASS=
"PROGRAMLISTING"
186 > sorce:
500:
508818B733CE64BEAAD3B435B51404EE:D2A2418EFC466A8A0F6B1DBB5C3DB80C:[UX ]:LCT-
00000000:
187 samba:
45:
0F2B255F7B67A7A9AAD3B435B51404EE:BC281CE3F53B6A5146629CD4751D3490:[UX ]:LCT-
3BFA1E8D:
198 >This option specifies that the username to be
199 used for the operation requested (listing, adding, removing)
202 > in add, remove and modify
212 >This option can be used while adding or
213 modifing a user account. It will specify the user's full
225 >This option can be used while adding or
226 modifing a user account. It will specify the user's home
227 directory network path.
</P
231 >-h
"\\\\BERSERKER\\sorce"</B
239 >This option can be used while adding or
240 modifing a user account. It will specify the windows drive
241 letter to be used to map the home directory.
</P
253 >This option can be used while adding or
254 modifing a user account. It will specify the user's logon
259 >-s
"\\\\BERSERKER\\netlogon\\sorce.bat"</B
267 >This option can be used while adding or
268 modifing a user account. It will specify the user's profile
273 >-p
"\\\\BERSERKER\\netlogon"</B
281 >This option is used to add a user into the
282 database. This command need the user name be specified with
283 the -u switch. When adding a new user pdbedit will also
284 ask for the password to be used
</P
288 >pdbedit -a -u sorce
</B
297 CLASS=
"PROGRAMLISTING"
299 retype new password
</PRE
310 >This option may only be used in conjunction
316 > option. It will make
317 pdbedit to add a machine trust account instead of a user
318 account (-u username will provide the machine name).
</P
322 >pdbedit -a -m -u w2k-wks
</B
330 >This option causes pdbedit to delete an account
331 from the database. It need the username be specified with the
336 >pdbedit -x -u bob
</B
343 >This command is used to import a smbpasswd
344 file into the database.
</P
346 >This option will ease migration from the plain smbpasswd
347 file database to more powerful backend databases like tdb and
352 >pdbedit -i /etc/smbpasswd.old
</B
367 >This command may be used only by root.
</P
377 >This man page is correct for version
2.2 of
389 HREF=
"smbpasswd.8.html"
408 >The original Samba software and related utilities
409 were created by Andrew Tridgell. Samba is now developed
410 by the Samba Team as an Open Source project similar
411 to the way the Linux kernel is developed.
</P
413 >The original Samba man pages were written by Karl Auer.
414 The man page sources were converted to YODL format (another
415 excellent piece of Open Source software, available at
417 HREF=
"ftp://ftp.icce.rug.nl/pub/unix/"
419 > ftp://ftp.icce.rug.nl/pub/unix/
</A
420 >) and updated for the Samba
2.0
421 release by Jeremy Allison. The conversion to DocBook for
422 Samba
2.2 was done by Gerald Carter
</P