add a few more notes to whats new
[Samba.git] / docs / htmldocs / pdbedit.8.html
blob9609664af053e54b7ce8db54421cfea16e3bffc6
1 <HTML
2 ><HEAD
3 ><TITLE
4 >pdbedit</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.57"></HEAD
8 ><BODY
9 CLASS="REFENTRY"
10 BGCOLOR="#FFFFFF"
11 TEXT="#000000"
12 LINK="#0000FF"
13 VLINK="#840084"
14 ALINK="#0000FF"
15 ><H1
16 ><A
17 NAME="PDBEDIT"
18 >pdbedit</A
19 ></H1
20 ><DIV
21 CLASS="REFNAMEDIV"
22 ><A
23 NAME="AEN5"
24 ></A
25 ><H2
26 >Name</H2
27 >pdbedit&nbsp;--&nbsp;manage the SAM database</DIV
28 ><DIV
29 CLASS="REFSYNOPSISDIV"
30 ><A
31 NAME="AEN8"
32 ></A
33 ><H2
34 >Synopsis</H2
35 ><P
36 ><B
37 CLASS="COMMAND"
38 >pdbedit</B
39 > [-l] [-v] [-w] [-u username] [-f fullname] [-h homedir] [-d drive] [-s script] [-p profile] [-a] [-m] [-x] [-i file]</P
40 ></DIV
41 ><DIV
42 CLASS="REFSECT1"
43 ><A
44 NAME="AEN24"
45 ></A
46 ><H2
47 >DESCRIPTION</H2
48 ><P
49 >This tool is part of the <A
50 HREF="samba.7.html"
51 TARGET="_top"
52 > Samba</A
53 > suite.</P
54 ><P
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
57 ><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
62 ><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
66 ></DIV
67 ><DIV
68 CLASS="REFSECT1"
69 ><A
70 NAME="AEN31"
71 ></A
72 ><H2
73 >OPTIONS</H2
74 ><P
75 ></P
76 ><DIV
77 CLASS="VARIABLELIST"
78 ><DL
79 ><DT
80 >-l</DT
81 ><DD
82 ><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
86 the ':' character.</P
87 ><P
88 >Example: <B
89 CLASS="COMMAND"
90 >pdbedit -l</B
91 ></P
92 ><P
93 ><TABLE
94 BORDER="0"
95 BGCOLOR="#E0E0E0"
96 WIDTH="90%"
97 ><TR
98 ><TD
99 ><PRE
100 CLASS="PROGRAMLISTING"
101 > sorce:500:Simo Sorce
102 samba:45:Test User
103 </PRE
104 ></TD
105 ></TR
106 ></TABLE
107 ></P
108 ></DD
109 ><DT
110 >-v</DT
111 ><DD
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
117 >Example: <B
118 CLASS="COMMAND"
119 >pdbedit -l -v</B
120 ></P
122 ><TABLE
123 BORDER="0"
124 BGCOLOR="#E0E0E0"
125 WIDTH="90%"
126 ><TR
127 ><TD
128 ><PRE
129 CLASS="PROGRAMLISTING"
130 > ---------------
131 username: sorce
132 user ID/Group: 500/500
133 user RID/GRID: 2000/2001
134 Full Name: Simo Sorce
135 Home Directory: \\BERSERKER\sorce
136 HomeDir Drive: H:
137 Logon Script: \\BERSERKER\netlogon\sorce.bat
138 Profile Path: \\BERSERKER\profile
139 ---------------
140 username: samba
141 user ID/Group: 45/45
142 user RID/GRID: 1090/1091
143 Full Name: Test User
144 Home Directory: \\BERSERKER\samba
145 HomeDir Drive:
146 Logon Script:
147 Profile Path: \\BERSERKER\profile
148 </PRE
149 ></TD
150 ></TR
151 ></TABLE
152 ></P
153 ></DD
154 ><DT
155 >-w</DT
156 ><DD
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
162 CLASS="FILENAME"
163 >smbpasswd</TT
164 > file format. (see the <A
165 HREF="smbpasswd.5.html"
166 TARGET="_top"
167 ><TT
168 CLASS="FILENAME"
169 >smbpasswd(5)</TT
170 ></A
171 > for details)</P
173 >Example: <B
174 CLASS="COMMAND"
175 >pdbedit -l -w</B
176 ></P
178 ><TABLE
179 BORDER="0"
180 BGCOLOR="#E0E0E0"
181 WIDTH="90%"
182 ><TR
183 ><TD
184 ><PRE
185 CLASS="PROGRAMLISTING"
186 > sorce:500:508818B733CE64BEAAD3B435B51404EE:D2A2418EFC466A8A0F6B1DBB5C3DB80C:[UX ]:LCT-00000000:
187 samba:45:0F2B255F7B67A7A9AAD3B435B51404EE:BC281CE3F53B6A5146629CD4751D3490:[UX ]:LCT-3BFA1E8D:
188 </PRE
189 ></TD
190 ></TR
191 ></TABLE
192 ></P
193 ></DD
194 ><DT
195 >-u username</DT
196 ><DD
198 >This option specifies that the username to be
199 used for the operation requested (listing, adding, removing)
200 It is <EM
201 >required</EM
202 > in add, remove and modify
203 operations and <EM
204 >optional</EM
205 > in list
206 operations.</P
207 ></DD
208 ><DT
209 >-f fullname</DT
210 ><DD
212 >This option can be used while adding or
213 modifing a user account. It will specify the user's full
214 name. </P
216 >Example: <B
217 CLASS="COMMAND"
218 >-f "Simo Sorce"</B
219 ></P
220 ></DD
221 ><DT
222 >-h homedir</DT
223 ><DD
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
229 >Example: <B
230 CLASS="COMMAND"
231 >-h "\\\\BERSERKER\\sorce"</B
234 ></DD
235 ><DT
236 >-d drive</DT
237 ><DD
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
243 >Example: <B
244 CLASS="COMMAND"
245 >-d "H:"</B
248 ></DD
249 ><DT
250 >-s script</DT
251 ><DD
253 >This option can be used while adding or
254 modifing a user account. It will specify the user's logon
255 script path.</P
257 >Example: <B
258 CLASS="COMMAND"
259 >-s "\\\\BERSERKER\\netlogon\\sorce.bat"</B
262 ></DD
263 ><DT
264 >-p profile</DT
265 ><DD
267 >This option can be used while adding or
268 modifing a user account. It will specify the user's profile
269 directory.</P
271 >Example: <B
272 CLASS="COMMAND"
273 >-p "\\\\BERSERKER\\netlogon"</B
276 ></DD
277 ><DT
278 >-a</DT
279 ><DD
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
286 >Example: <B
287 CLASS="COMMAND"
288 >pdbedit -a -u sorce</B
290 <TABLE
291 BORDER="0"
292 BGCOLOR="#E0E0E0"
293 WIDTH="90%"
294 ><TR
295 ><TD
296 ><PRE
297 CLASS="PROGRAMLISTING"
298 >new password:
299 retype new password</PRE
300 ></TD
301 ></TR
302 ></TABLE
305 ></DD
306 ><DT
307 >-m</DT
308 ><DD
310 >This option may only be used in conjunction
311 with the <TT
312 CLASS="PARAMETER"
314 >-a</I
315 ></TT
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
320 >Example: <B
321 CLASS="COMMAND"
322 >pdbedit -a -m -u w2k-wks</B
325 ></DD
326 ><DT
327 >-x</DT
328 ><DD
330 >This option causes pdbedit to delete an account
331 from the database. It need the username be specified with the
332 -u switch.</P
334 >Example: <B
335 CLASS="COMMAND"
336 >pdbedit -x -u bob</B
337 ></P
338 ></DD
339 ><DT
340 >-i file</DT
341 ><DD
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
348 ldap.</P
350 >Example: <B
351 CLASS="COMMAND"
352 >pdbedit -i /etc/smbpasswd.old</B
355 ></DD
356 ></DL
357 ></DIV
358 ></DIV
359 ><DIV
360 CLASS="REFSECT1"
362 NAME="AEN124"
363 ></A
364 ><H2
365 >NOTES</H2
367 >This command may be used only by root.</P
368 ></DIV
369 ><DIV
370 CLASS="REFSECT1"
372 NAME="AEN127"
373 ></A
374 ><H2
375 >VERSION</H2
377 >This man page is correct for version 2.2 of
378 the Samba suite.</P
379 ></DIV
380 ><DIV
381 CLASS="REFSECT1"
383 NAME="AEN130"
384 ></A
385 ><H2
386 >SEE ALSO</H2
389 HREF="smbpasswd.8.html"
390 TARGET="_top"
391 >smbpasswd(8)</A
394 HREF="samba.7.html"
395 TARGET="_top"
396 >samba(7)</A
399 ></DIV
400 ><DIV
401 CLASS="REFSECT1"
403 NAME="AEN135"
404 ></A
405 ><H2
406 >AUTHOR</H2
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/"
418 TARGET="_top"
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
423 ></DIV
424 ></BODY
425 ></HTML