source: trunk/server/docs/manpages/pdbedit.8@ 745

Last change on this file since 745 was 745, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated trunk to 3.6.0

File size: 14.8 KB
Line 
1'\" t
2.\" Title: pdbedit
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 08/08/2011
6.\" Manual: System Administration tools
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "PDBEDIT" "8" "08/08/2011" "Samba 3\&.6" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22pdbedit \- manage the SAM database (Database of Samba Users)
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25pdbedit [\-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] [\-I\ domain] [\-K] [\-L] [\-m] [\-M\ SID|RID] [\-N\ description] [\-P\ account\-policy] [\-p\ profile] [\-\-policies\-reset] [\-r] [\-s\ configfile] [\-S\ script] [\-t] [\-\-time\-format] [\-u\ username] [\-U\ SID|RID] [\-v] [\-V] [\-w] [\-x] [\-y] [\-z] [\-Z]
26.SH "DESCRIPTION"
27.PP
28This tool is part of the
29\fBsamba\fR(7)
30suite\&.
31.PP
32The pdbedit program is used to manage the users accounts stored in the sam database and can only be run by root\&.
33.PP
34The 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 changing the tool)\&.
35.PP
36There are five main ways to use pdbedit: adding a user account, removing a user account, modifing a user account, listing user accounts, importing users accounts\&.
37.SH "OPTIONS"
38.PP
39\-L|\-\-list
40.RS 4
41This option lists all the user accounts present in the users database\&. This option prints a list of user/uid pairs separated by the \':\' character\&.
42.sp
43Example:
44pdbedit \-L
45.sp
46.if n \{\
47.RS 4
48.\}
49.nf
50sorce:500:Simo Sorce
51samba:45:Test User
52.fi
53.if n \{\
54.RE
55.\}
56.RE
57.PP
58\-v|\-\-verbose
59.RS 4
60This 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\&.
61.sp
62Example:
63pdbedit \-L \-v
64.sp
65.if n \{\
66.RS 4
67.\}
68.nf
69\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
70username: sorce
71user ID/Group: 500/500
72user RID/GRID: 2000/2001
73Full Name: Simo Sorce
74Home Directory: \e\eBERSERKER\esorce
75HomeDir Drive: H:
76Logon Script: \e\eBERSERKER\enetlogon\esorce\&.bat
77Profile Path: \e\eBERSERKER\eprofile
78\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
79username: samba
80user ID/Group: 45/45
81user RID/GRID: 1090/1091
82Full Name: Test User
83Home Directory: \e\eBERSERKER\esamba
84HomeDir Drive:
85Logon Script:
86Profile Path: \e\eBERSERKER\eprofile
87.fi
88.if n \{\
89.RE
90.\}
91.RE
92.PP
93\-w|\-\-smbpasswd\-style
94.RS 4
95This option sets the "smbpasswd" listing format\&. It will make pdbedit list the users in the database, printing out the account fields in a format compatible with the
96smbpasswd
97file format\&. (see the
98\fBsmbpasswd\fR(5)
99for details)
100.sp
101Example:
102pdbedit \-L \-w
103.sp
104.if n \{\
105.RS 4
106.\}
107.nf
108sorce:500:508818B733CE64BEAAD3B435B51404EE:
109 D2A2418EFC466A8A0F6B1DBB5C3DB80C:
110 [UX ]:LCT\-00000000:
111samba:45:0F2B255F7B67A7A9AAD3B435B51404EE:
112 BC281CE3F53B6A5146629CD4751D3490:
113 [UX ]:LCT\-3BFA1E8D:
114.fi
115.if n \{\
116.RE
117.\}
118.RE
119.PP
120\-u|\-\-user username
121.RS 4
122This option specifies the username to be used for the operation requested (listing, adding, removing)\&. It is
123\fIrequired\fR
124in add, remove and modify operations and
125\fIoptional\fR
126in list operations\&.
127.RE
128.PP
129\-f|\-\-fullname fullname
130.RS 4
131This option can be used while adding or modifing a user account\&. It will specify the user\'s full name\&.
132.sp
133Example:
134\-f "Simo Sorce"
135.RE
136.PP
137\-h|\-\-homedir homedir
138.RS 4
139This option can be used while adding or modifing a user account\&. It will specify the user\'s home directory network path\&.
140.sp
141Example:
142\-h "\e\e\e\eBERSERKER\e\esorce"
143.RE
144.PP
145\-D|\-\-drive drive
146.RS 4
147This option can be used while adding or modifing a user account\&. It will specify the windows drive letter to be used to map the home directory\&.
148.sp
149Example:
150\-D "H:"
151.RE
152.PP
153\-S|\-\-script script
154.RS 4
155This option can be used while adding or modifing a user account\&. It will specify the user\'s logon script path\&.
156.sp
157Example:
158\-S "\e\e\e\eBERSERKER\e\enetlogon\e\esorce\&.bat"
159.RE
160.PP
161\-p|\-\-profile profile
162.RS 4
163This option can be used while adding or modifing a user account\&. It will specify the user\'s profile directory\&.
164.sp
165Example:
166\-p "\e\e\e\eBERSERKER\e\enetlogon"
167.RE
168.PP
169\-M|\'\-\-machine SID\' SID|rid
170.RS 4
171This option can be used while adding or modifying a machine account\&. It will specify the machines\' new primary group SID (Security Identifier) or rid\&.
172.sp
173Example:
174\-M S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-1201
175.RE
176.PP
177\-U|\'\-\-user SID\' SID|rid
178.RS 4
179This option can be used while adding or modifying a user account\&. It will specify the users\' new SID (Security Identifier) or rid\&.
180.sp
181Example:
182\-U S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-5004
183.sp
184Example:
185\'\-\-user SID\' S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-5004
186.sp
187Example:
188\-U 5004
189.sp
190Example:
191\'\-\-user SID\' 5004
192.RE
193.PP
194\-c|\-\-account\-control account\-control
195.RS 4
196This option can be used while adding or modifying a user account\&. It will specify the users\' account control property\&. Possible flags are listed below\&.
197.sp
198
199.sp
200.RS 4
201.ie n \{\
202\h'-04'\(bu\h'+03'\c
203.\}
204.el \{\
205.sp -1
206.IP \(bu 2.3
207.\}
208N: No password required
209.RE
210.sp
211.RS 4
212.ie n \{\
213\h'-04'\(bu\h'+03'\c
214.\}
215.el \{\
216.sp -1
217.IP \(bu 2.3
218.\}
219D: Account disabled
220.RE
221.sp
222.RS 4
223.ie n \{\
224\h'-04'\(bu\h'+03'\c
225.\}
226.el \{\
227.sp -1
228.IP \(bu 2.3
229.\}
230H: Home directory required
231.RE
232.sp
233.RS 4
234.ie n \{\
235\h'-04'\(bu\h'+03'\c
236.\}
237.el \{\
238.sp -1
239.IP \(bu 2.3
240.\}
241T: Temporary duplicate of other account
242.RE
243.sp
244.RS 4
245.ie n \{\
246\h'-04'\(bu\h'+03'\c
247.\}
248.el \{\
249.sp -1
250.IP \(bu 2.3
251.\}
252U: Regular user account
253.RE
254.sp
255.RS 4
256.ie n \{\
257\h'-04'\(bu\h'+03'\c
258.\}
259.el \{\
260.sp -1
261.IP \(bu 2.3
262.\}
263M: MNS logon user account
264.RE
265.sp
266.RS 4
267.ie n \{\
268\h'-04'\(bu\h'+03'\c
269.\}
270.el \{\
271.sp -1
272.IP \(bu 2.3
273.\}
274W: Workstation Trust Account
275.RE
276.sp
277.RS 4
278.ie n \{\
279\h'-04'\(bu\h'+03'\c
280.\}
281.el \{\
282.sp -1
283.IP \(bu 2.3
284.\}
285S: Server Trust Account
286.RE
287.sp
288.RS 4
289.ie n \{\
290\h'-04'\(bu\h'+03'\c
291.\}
292.el \{\
293.sp -1
294.IP \(bu 2.3
295.\}
296L: Automatic Locking
297.RE
298.sp
299.RS 4
300.ie n \{\
301\h'-04'\(bu\h'+03'\c
302.\}
303.el \{\
304.sp -1
305.IP \(bu 2.3
306.\}
307X: Password does not expire
308.RE
309.sp
310.RS 4
311.ie n \{\
312\h'-04'\(bu\h'+03'\c
313.\}
314.el \{\
315.sp -1
316.IP \(bu 2.3
317.\}
318I: Domain Trust Account
319.RE
320.sp
321.RE
322.sp
323Example:
324\-c "[X ]"
325.RE
326.PP
327\-K|\-\-kickoff\-time
328.RS 4
329This option is used to modify the kickoff time for a certain user\&. Use "never" as argument to set the kickoff time to unlimited\&.
330.sp
331Example:
332pdbedit \-K never user
333.RE
334.PP
335\-a|\-\-create
336.RS 4
337This 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\&.
338.sp
339Example:
340pdbedit \-a \-u sorce
341.sp
342.if n \{\
343.RS 4
344.\}
345.nf
346new password:
347retype new password
348.fi
349.if n \{\
350.RE
351.\}
352.sp
353.if n \{\
354.sp
355.\}
356.RS 4
357.it 1 an-trap
358.nr an-no-space-flag 1
359.nr an-break-flag 1
360.br