Penguin
Annotated edit history of pdbedit(8) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 PDBEDIT
2 !!!PDBEDIT
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 OPTIONS
7 NOTES
8 VERSION
9 SEE ALSO
10 AUTHOR
11 ----
12 !!NAME
13
14
15 pdbedit - manage the SAM database
16 !!SYNOPSIS
17
18
19 __pdbedit__ [[ __-l__ ] [[ __-v__ ] [[ __-w__ ] [[
20 __-u username__ ] [[ __-f fullname__ ] [[ __-h
21 homedir__ ] [[ __-d drive__ ] [[ __-s script__ ] [[
22 __-p profile__ ] [[ __-a__ ] [[ __-m__ ] [[ __-x__
23 ] [[ __-i file__ ]
24 !!DESCRIPTION
25
26
27 This tool is part of the Sambasuite.
28
29
30 The pdbedit program is used to manage the users accounts
31 stored in the sam database and can be run only by
32 root.
33
34
35 The pdbedit tool use the passdb modular interface and is
36 independent from the kind of users database used (currently
37 there are smbpasswd, ldap, nis+ and tdb based and more can
38 be addedd without changing the tool).
39
40
41 There are five main ways to use pdbedit: adding a user
42 account, removing a user account, modifing a user account,
43 listing user accounts, importing users
44 accounts.
45 !!OPTIONS
46
47
48 __-l__
49
50
51 This option list all the user accounts present in the users
52 database. This option prints a list of user/uid pairs
53 separated by the ':' character.
54
55
56 Example: __pdbedit -l__
57
58
59 sorce:500:Simo Sorce
60 samba:45:Test User
61
62
63 __-v__
64
65
66 This option sets the verbose listing format. It will make
67 pdbedit list the users in the database printing out the
68 account fields in a descriptive format.
69
70
71 Example: __pdbedit -l -v__
72
73
74 ---------------
75 username: sorce
76 user ID/Group: 500/500
77 user RID/GRID: 2000/2001
78 Full Name: Simo Sorce
79 Home Directory: \BERSERKERsorce
2 perry 80 !HomeDir Drive: H:
1 perry 81 Logon Script: \BERSERKERnetlogonsorce.bat
82 Profile Path: \BERSERKERprofile
83 ---------------
84 username: samba
85 user ID/Group: 45/45
86 user RID/GRID: 1090/1091
87 Full Name: Test User
88 Home Directory: \BERSERKERsamba
2 perry 89 !HomeDir Drive:
1 perry 90 Logon Script:
91 Profile Path: \BERSERKERprofile
92
93
94 __-w__
95
96
97 This option sets the
98 smbpasswd'' file format. (see the
99 ''smbpasswd(5)''for details)
100
101
102 Example: __pdbedit -l -w__
103
104
105 sorce:500:508818B733CE64BEAAD3B435B51404EE:D2A2418EFC466A8A0F6B1DBB5C3DB80C:[[UX ]:LCT-00000000:
106 samba:45:0F2B255F7B67A7A9AAD3B435B51404EE:BC281CE3F53B6A5146629CD4751D3490:[[UX ]:LCT-3BFA1E8D:
107
108
109 __-u username__
110
111
112 This option specifies that the username to be used for the
113 operation requested (listing, adding, removing) It is
114 __required__ in add, remove and modify operations and
115 __optional__ in list operations.
116
117
118 __-f fullname__
119
120
121 This option can be used while adding or modifing a user
122 account. It will specify the user's full name.
123
124
125 Example: __-f __
126
127
128 __-h homedir__
129
130
131 This option can be used while adding or modifing a user
132 account. It will specify the user's home directory network
133 path.
134
135
136 Example: __-h
137 __
138
139
140 __-d drive__
141
142
143 This option can be used while adding or modifing a user
144 account. It will specify the windows drive letter to be used
145 to map the home directory.
146
147
148 Example: __-d __
149
150
151 __-s script__
152
153
154 This option can be used while adding or modifing a user
155 account. It will specify the user's logon script
156 path.
157
158
159 Example: __-s
160 __
161
162
163 __-p profile__
164
165
166 This option can be used while adding or modifing a user
167 account. It will specify the user's profile
168 directory.
169
170
171 Example: __-p
172 __
173
174
175 __-a__
176
177
178 This option is used to add a user into the database. This
179 command need the user name be specified with the -u switch.
180 When adding a new user pdbedit will also ask for the
181 password to be used
182
183
184 Example: __pdbedit -a -u sorce__
185
186
187 new password:
188 retype new password
189
190
191 __-m__
192
193
194 This option may only be used in conjunction with the
195 ''-a'' option. It will make pdbedit to add a machine
196 trust account instead of a user account (-u username will
197 provide the machine name).
198
199
200 Example: __pdbedit -a -m -u w2k-wks__
201
202
203 __-x__
204
205
206 This option causes pdbedit to delete an account from the
207 database. It need the username be specified with the -u
208 switch.
209
210
211 Example: __pdbedit -x -u bob__
212
213
214 __-i file__
215
216
217 This command is used to import a smbpasswd file into the
218 database.
219
220
221 This option will ease migration from the plain smbpasswd
222 file database to more powerful backend databases like tdb
223 and ldap.
224
225
226 Example: __pdbedit -i /etc/smbpasswd.old__
227 !!NOTES
228
229
230 This command may be used only by root.
231 !!VERSION
232
233
234 This man page is correct for version 2.2 of the Samba
235 suite.
236 !!SEE ALSO
237
238
239 smbpasswd(8), samba(7)
240 !!AUTHOR
241
242
243 The original Samba software and related utilities were
244 created by Andrew Tridgell. Samba is now developed by the
245 Samba Team as an Open Source project similar to the way the
246 Linux kernel is developed.
247
248
249 The original Samba man pages were written by Karl Auer. The
250 man page sources were converted to YODL format (another
251 excellent piece of Open Source software, available at
252 ftp://ftp.icce.rug.nl/pub/unix/
253 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.