source: vendor/3.5.6/docs/manpages/pdbedit.8

Last change on this file was 478, checked in by Silvan Scherrer, 15 years ago

Samba 3.5: vendor update to 3.5.4

File size: 19.2 KB
Line 
1.\" Title: pdbedit
2.\" Author: [see the "AUTHOR" section]
3.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4.\" Date: 06/18/2010
5.\" Manual: System Administration tools
6.\" Source: Samba 3.5
7.\" Language: English
8.\"
9.TH "PDBEDIT" "8" "06/18/2010" "Samba 3\&.5" "System Administration tools"
10.\" -----------------------------------------------------------------
11.\" * (re)Define some macros
12.\" -----------------------------------------------------------------
13.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14.\" toupper - uppercase a string (locale-aware)
15.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16.de toupper
17.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
18\\$*
19.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
20..
21.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22.\" SH-xref - format a cross-reference to an SH section
23.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24.de SH-xref
25.ie n \{\
26.\}
27.toupper \\$*
28.el \{\
29\\$*
30.\}
31..
32.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33.\" SH - level-one heading that works better for non-TTY output
34.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35.de1 SH
36.\" put an extra blank line of space above the head in non-TTY output
37.if t \{\
38.sp 1
39.\}
40.sp \\n[PD]u
41.nr an-level 1
42.set-an-margin
43.nr an-prevailing-indent \\n[IN]
44.fi
45.in \\n[an-margin]u
46.ti 0
47.HTML-TAG ".NH \\n[an-level]"
48.it 1 an-trap
49.nr an-no-space-flag 1
50.nr an-break-flag 1
51\." make the size of the head bigger
52.ps +3
53.ft B
54.ne (2v + 1u)
55.ie n \{\
56.\" if n (TTY output), use uppercase
57.toupper \\$*
58.\}
59.el \{\
60.nr an-break-flag 0
61.\" if not n (not TTY), use normal case (not uppercase)
62\\$1
63.in \\n[an-margin]u
64.ti 0
65.\" if not n (not TTY), put a border/line under subheading
66.sp -.6
67\l'\n(.lu'
68.\}
69..
70.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71.\" SS - level-two heading that works better for non-TTY output
72.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73.de1 SS
74.sp \\n[PD]u
75.nr an-level 1
76.set-an-margin
77.nr an-prevailing-indent \\n[IN]
78.fi
79.in \\n[IN]u
80.ti \\n[SN]u
81.it 1 an-trap
82.nr an-no-space-flag 1
83.nr an-break-flag 1
84.ps \\n[PS-SS]u
85\." make the size of the head bigger
86.ps +2
87.ft B
88.ne (2v + 1u)
89.if \\n[.$] \&\\$*
90..
91.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92.\" BB/BE - put background/screen (filled box) around block of text
93.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94.de BB
95.if t \{\
96.sp -.5
97.br
98.in +2n
99.ll -2n
100.gcolor red
101.di BX
102.\}
103..
104.de EB
105.if t \{\
106.if "\\$2"adjust-for-leading-newline" \{\
107.sp -1
108.\}
109.br
110.di
111.in
112.ll
113.gcolor
114.nr BW \\n(.lu-\\n(.i
115.nr BH \\n(dn+.5v
116.ne \\n(BHu+.5v
117.ie "\\$2"adjust-for-leading-newline" \{\
118\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
119.\}
120.el \{\
121\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
122.\}
123.in 0
124.sp -.5v
125.nf
126.BX
127.in
128.sp .5v
129.fi
130.\}
131..
132.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133.\" BM/EM - put colored marker in margin next to block of text
134.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135.de BM
136.if t \{\
137.br
138.ll -2n
139.gcolor red
140.di BX
141.\}
142..
143.de EM
144.if t \{\
145.br
146.di
147.ll
148.gcolor
149.nr BH \\n(dn
150.ne \\n(BHu
151\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
152.in 0
153.nf
154.BX
155.in
156.fi
157.\}
158..
159.\" -----------------------------------------------------------------
160.\" * set default formatting
161.\" -----------------------------------------------------------------
162.\" disable hyphenation
163.nh
164.\" disable justification (adjust text to left margin only)
165.ad l
166.\" -----------------------------------------------------------------
167.\" * MAIN CONTENT STARTS HERE *
168.\" -----------------------------------------------------------------
169.SH "Name"
170pdbedit \- manage the SAM database (Database of Samba Users)
171.SH "Synopsis"
172.fam C
173.HP \w'\ 'u
174\FCpdbedit\F[] [\-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]
175.fam
176.SH "DESCRIPTION"
177.PP
178This tool is part of the
179\fBsamba\fR(7)
180suite\&.
181.PP
182The pdbedit program is used to manage the users accounts stored in the sam database and can only be run by root\&.
183.PP
184The 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)\&.
185.PP
186There 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\&.
187.SH "OPTIONS"
188.PP
189\-L|\-\-list
190.RS 4
191This option lists all the user accounts present in the users database\&. This option prints a list of user/uid pairs separated by the \':\' character\&.
192.sp
193Example:
194\FCpdbedit \-L\F[]
195.sp
196.if n \{\
197.RS 4
198.\}
199.fam C
200.ps -1
201.nf
202.if t \{\
203.sp -1
204.\}
205.BB lightgray adjust-for-leading-newline
206.sp -1
207
208sorce:500:Simo Sorce
209samba:45:Test User
210.EB lightgray adjust-for-leading-newline
211.if t \{\
212.sp 1
213.\}
214.fi
215.fam
216.ps +1
217.if n \{\
218.RE
219.\}
220.RE
221.PP
222\-v|\-\-verbose
223.RS 4
224This 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\&.
225.sp
226Example:
227\FCpdbedit \-L \-v\F[]
228.sp
229.if n \{\
230.RS 4
231.\}
232.fam C
233.ps -1
234.nf
235.if t \{\
236.sp -1
237.\}
238.BB lightgray adjust-for-leading-newline
239.sp -1
240
241\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
242username: sorce
243user ID/Group: 500/500
244user RID/GRID: 2000/2001
245Full Name: Simo Sorce
246Home Directory: \e\eBERSERKER\esorce
247HomeDir Drive: H:
248Logon Script: \e\eBERSERKER\enetlogon\esorce\&.bat
249Profile Path: \e\eBERSERKER\eprofile
250\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
251username: samba
252user ID/Group: 45/45
253user RID/GRID: 1090/1091
254Full Name: Test User
255Home Directory: \e\eBERSERKER\esamba
256HomeDir Drive:
257Logon Script:
258Profile Path: \e\eBERSERKER\eprofile
259.EB lightgray adjust-for-leading-newline
260.if t \{\
261.sp 1
262.\}
263.fi
264.fam
265.ps +1
266.if n \{\
267.RE
268.\}
269.RE
270.PP
271\-w|\-\-smbpasswd\-style
272.RS 4
273This 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
274\FCsmbpasswd\F[]
275file format\&. (see the
276\fBsmbpasswd\fR(5)
277for details)
278.sp
279Example:
280\FCpdbedit \-L \-w\F[]
281.sp
282.if n \{\
283.RS 4
284.\}
285.fam C
286.ps -1
287.nf
288.if t \{\
289.sp -1
290.\}
291.BB lightgray adjust-for-leading-newline
292.sp -1
293
294sorce:500:508818B733CE64BEAAD3B435B51404EE:
295 D2A2418EFC466A8A0F6B1DBB5C3DB80C:
296 [UX ]:LCT\-00000000:
297samba:45:0F2B255F7B67A7A9AAD3B435B51404EE:
298 BC281CE3F53B6A5146629CD4751D3490:
299 [UX ]:LCT\-3BFA1E8D:
300.EB lightgray adjust-for-leading-newline
301.if t \{\
302.sp 1
303.\}
304.fi
305.fam
306.ps +1
307.if n \{\
308.RE
309.\}
310.RE
311.PP
312\-u|\-\-user username
313.RS 4
314This option specifies the username to be used for the operation requested (listing, adding, removing)\&. It is
315\fIrequired\fR
316in add, remove and modify operations and
317\fIoptional\fR
318in list operations\&.
319.RE
320.PP
321\-f|\-\-fullname fullname
322.RS 4
323This option can be used while adding or modifing a user account\&. It will specify the user\'s full name\&.
324.sp
325Example:
326\FC\-f "Simo Sorce"\F[]
327.RE
328.PP
329\-h|\-\-homedir homedir
330.RS 4
331This option can be used while adding or modifing a user account\&. It will specify the user\'s home directory network path\&.
332.sp
333Example:
334\FC\-h "\e\e\e\eBERSERKER\e\esorce"\F[]
335.RE
336.PP
337\-D|\-\-drive drive
338.RS 4
339This 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\&.
340.sp
341Example:
342\FC\-D "H:"\F[]
343.RE
344.PP
345\-S|\-\-script script
346.RS 4
347This option can be used while adding or modifing a user account\&. It will specify the user\'s logon script path\&.
348.sp
349Example:
350\FC\-S "\e\e\e\eBERSERKER\e\enetlogon\e\esorce\&.bat"\F[]
351.RE
352.PP
353\-p|\-\-profile profile
354.RS 4
355This option can be used while adding or modifing a user account\&. It will specify the user\'s profile directory\&.
356.sp
357Example:
358\FC\-p "\e\e\e\eBERSERKER\e\enetlogon"\F[]
359.RE
360.PP
361\-M|\'\-\-machine SID\' SID|rid
362.RS 4
363This option can be used while adding or modifying a machine account\&. It will specify the machines\' new primary group SID (Security Identifier) or rid\&.
364.sp
365Example:
366\FC\-M S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-1201\F[]
367.RE
368.PP
369\-U|\'\-\-user SID\' SID|rid
370.RS 4
371This option can be used while adding or modifying a user account\&. It will specify the users\' new SID (Security Identifier) or rid\&.
372.sp
373Example:
374\FC\-U S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-5004\F[]
375.sp
376Example:
377\FC\'\-\-user SID\' S\-1\-5\-21\-2447931902\-1787058256\-3961074038\-5004\F[]
378.sp
379Example:
380\FC\-U 5004\F[]
381.sp
382Example:
383\FC\'\-\-user SID\' 5004\F[]
384.RE
385.PP
386\-c|\-\-account\-control account\-control
387.RS 4
388This option can be used while adding or modifying a user account\&. It will specify the users\' account control property\&. Possible flags are listed below\&.
389.sp
390
391.sp
392.RS 4
393.ie n \{\
394\h'-04'\(bu\h'+03'\c
395.\}
396.el \{\
397.sp -1
398.IP \(bu 2.3
399.\}
400N: No password required
401.RE
402.sp
403.RS 4
404.ie n \{\
405\h'-04'\(bu\h'+03'\c
406.\}
407.el \{\
408.sp -1
409.IP \(bu 2.3
410.\}
411D: Account disabled
412.RE
413.sp
414.RS 4
415.ie n \{\
416\h'-04'\(bu\h'+03'\c
417.\}
418.el \{\
419.sp -1
420.IP \(bu 2.3
421.\}
422H: Home directory required
423.RE
424.sp
425.RS 4
426.ie n \{\
427\h'-04'\(bu\h'+03'\c
428.\}
429.el \{\
430.sp -1
431.IP \(bu 2.3
432.\}
433T: Temporary duplicate of other account
434.RE
435.sp
436.RS 4
437.ie n \{\
438\h'-04'\(bu\h'+03'\c
439.\}
440.el \{\
441.sp -1
442.IP \(bu 2.3
443.\}
444U: Regular user account
445.RE
446.sp
447.RS 4
448.ie n \{\
449\h'-04'\(bu\h'+03'\c
450.\}
451.el \{\
452.sp -1
453.IP \(bu 2.3
454.\}
455M: MNS logon user account
456.RE
457.sp
458.RS 4
459.ie n \{\
460\h'-04'\(bu\h'+03'\c
461.\}
462.el \{\
463.sp -1
464.IP \(bu 2.3
465.\}
466W: Workstation Trust Account
467.RE
468.sp
469.RS 4
470.ie n \{\
471\h'-04'\(bu\h'+03'\c
472.\}
473.el \{\
474.sp -1
475.IP \(bu 2.3
476.\}
477S: Server Trust Account
478.RE
479.sp
480.RS 4
481.ie n \{\
482\h'-04'\(bu\h'+03'\c
483.\}
484.el \{\
485.sp -1
486.IP \(bu 2.3
487.\}
488L: Automatic Locking
489.RE
490.sp
491.RS 4
492.ie n \{\
493\h'-04'\(bu\h'+03'\c
494.\}
495.el \{\
496.sp -1
497.IP \(bu 2.3
498.\}
499X: Password does not expire
500.RE
501.sp
502.RS 4
503.ie n \{\
504\h'-04'\(bu\h'+03'\c
505.\}
506.el \{\
507.sp -1
508.IP \(bu 2.3
509.\}
510I: Domain Trust Account
511.sp
512.RE
513.sp
514Example:
515\FC\-c "[X ]"\F[]
516.RE
517.PP
518\-K|\-\-kickoff\-time
519.RS 4
520This option is used to modify the kickoff time for a certain user\&. Use "never" as argument to set the kickoff time to unlimited\&.
521.sp
522Example:
523\FCpdbedit \-K never user\F[]
524.RE
525.PP
526\-a|\-\-create
527.RS 4
528This 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\&.
529.sp
530Example:
531\FCpdbedit \-a \-u sorce\F[]
532.sp
533.if n \{\
534.RS 4
535.\}
536.fam C
537.ps -1
538.nf
539.BB lightgray
540new password:
541retype new password
542.EB lightgray
543.fi
544.fam
545.ps +1
546.if n \{\
547.RE
548.\}
549.sp
550.if n \{\
551.sp
552.\}
553.RS 4
554.BM yellow
555.it 1 an-trap
556.nr an-no-space-flag 1
557.nr an-break-flag 1
558.br
559.ps +1
560\fBNote\fR
561.ps -1
562.br
563pdbedit does not call the unix password syncronisation script if
564\m[blue]\fBunix password sync\fR\m[]
565has been set\&. It only updates the data in the Samba user database\&.
566.sp
567If you wish to add a user and synchronise the password that immediately, use
568\FCsmbpasswd\F[]\'s
569\fB\-a\fR
570option\&.
571.sp .5v
572.EM yellow
573.RE
574.RE
575.PP
576\-t|\-\-password\-from\-stdin
577.RS 4
578This option causes pdbedit to read the password from standard input, rather than from /dev/tty (like the
579\FCpasswd(1)\F[]
580program does)\&. The password has to be submitted twice and terminated by a newline each\&.
581.RE
582.PP
583\-r|\-\-modify
584.RS 4
585This 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 specified user\&. This flag is kept for backwards compatibility, but it is no longer necessary to specify it\&.
586.RE
587.PP
588\-m|\-\-machine
589.RS 4
590This option may only be used in conjunction with the
591\fI\-a\fR
592option\&. It will make pdbedit to add a machine trust account instead of a user account (\-u username will provide the machine name)\&.
593.sp
594Example:
595\FCpdbedit \-a \-m \-u w2k\-wks\F[]
596.RE
597.PP
598\-x|\-\-delete
599.RS 4
600This option causes pdbedit to delete an account from the database\&. It needs a username specified with the \-u switch\&.
601.sp
602Example:
603\FCpdbedit \-x \-u bob\F[]
604.RE
605.PP
606\-i|\-\-import passdb\-backend
607.RS 4
608Use 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\&.
609.sp
610This option will ease migration from one passdb backend to another\&.
611.sp
612Example:
613\FCpdbedit \-i smbpasswd:/etc/smbpasswd\&.old \F[]
614.RE
615.PP
616\-e|\-\-export passdb\-backend
617.RS 4
618Exports all currently available users to the specified password database backend\&.
619.sp
620This option will ease migration from one passdb backend to another and will ease backing up\&.
621.sp
622Example:
623\FCpdbedit \-e smbpasswd:/root/samba\-users\&.backup\F[]
624.RE
625.PP
626\-g|\-\-group
627.RS 4
628If you specify
629\fI\-g\fR, then
630\fI\-i in\-backend \-e out\-backend\fR
631applies to the group mapping instead of the user database\&.
632.sp
633This option will ease migration from one passdb backend to another and will ease backing up\&.
634.RE
635.PP
636\-b|\-\-backend passdb\-backend
637.RS 4
638Use a different default passdb backend\&.
639.sp
640Example:
641\FCpdbedit \-b xml:/root/pdb\-backup\&.xml \-l\F[]
642.RE
643.PP
644\-P|\-\-account\-policy account\-policy
645.RS 4
646Display an account policy
647.sp
648Valid 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 and bad lockout attempt\&.
649.sp
650Example:
651\FCpdbedit \-P "bad lockout attempt"\F[]
652.sp
653.if n \{\
654.RS 4
655.\}
656.fam C
657.ps -1
658.nf
659.if t \{\
660.sp -1
661.\}
662.BB lightgray adjust-for-leading-newline
663.sp -1
664
665account policy value for bad lockout attempt is 0
666.EB lightgray adjust-for-leading-newline
667.if t \{\
668.sp 1
669.\}
670.fi
671.fam
672.ps +1
673.if n \{\
674.RE
675.\}
676.RE
677.PP
678\-C|\-\-value account\-policy\-value
679.RS 4
680Sets an account policy to a specified value\&. This option may only be used in conjunction with the
681\fI\-P\fR
682option\&.
683.sp
684Example:
685\FCpdbedit \-P "bad lockout attempt" \-C 3\F[]
686.sp
687.if n \{\
688.RS 4
689.\}
690.fam C
691.ps -1
692.nf
693.if t \{\
694.sp -1
695.\}
696.BB lightgray adjust-for-leading-newline
697.sp -1
698
699account policy value for bad lockout attempt was 0
700account policy value for bad lockout attempt is now 3
701.EB lightgray adjust-for-leading-newline
702.if t \{\
703.sp 1
704.\}
705.fi
706.fam
707.ps +1
708.if n \{\
709.RE
710.\}
711.RE
712.PP
713\-y|\-\-policies
714.RS 4
715If you specify
716\fI\-y\fR, then
717\fI\-i in\-backend \-e out\-backend\fR
718applies to the account policies instead of the user database\&.
719.sp
720This option will allow to migrate account policies from their default tdb\-store into a passdb backend, e\&.g\&. an LDAP directory server\&.
721.sp
722Example:
723\FCpdbedit \-y \-i tdbsam: \-e ldapsam:ldap://my\&.ldap\&.host\F[]
724.RE
725.PP
726\-\-force\-initialized\-passwords
727.RS 4
728This option forces all users to change their password upon next login\&.
729.RE
730.PP
731\-N|\-\-account\-desc description
732.RS 4
733This option can be used while adding or modifing a user account\&. It will specify the user\'s description field\&.
734.sp
735Example:
736\FC\-N "test description"\F[]
737.RE
738.PP
739\-Z|\-\-logon\-hours\-reset
740.RS 4
741This option can be used while adding or modifing a user account\&. It will reset the user\'s allowed logon hours\&. A user may login at any time afterwards\&.
742.sp
743Example:
744\FC\-Z\F[]
745.RE
746.PP
747\-z|\-\-bad\-password\-count\-reset
748.RS 4
749This option can be used while adding or modifing a user account\&. It will reset the stored bad login counter from a specified user\&.
750.sp
751Example:
752\FC\-z\F[]
753.RE
754.PP
755\-\-policies\-reset
756.RS 4
757This option can be used to reset the general password policies stored for a domain to their default values\&.
758.sp
759Example:
760\FC\-\-policies\-reset\F[]
761.RE
762.PP
763\-I|\-\-domain
764.RS 4
765This option can be used while adding or modifing a user account\&. It will specify the user\'s domain field\&.
766.sp
767Example:
768\FC\-I "MYDOMAIN"\F[]
769.RE
770.PP
771\-\-time\-format
772.RS 4
773This option is currently not being used\&.
774.RE
775.PP
776\-h|\-\-help
777.RS 4
778Print a summary of command line options\&.
779.RE
780.PP
781\-d|\-\-debuglevel=level
782.RS 4
783\fIlevel\fR
784is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&.
785.sp
786The 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 reasonable level for day\-to\-day running \- it generates a small amount of information about operations carried out\&.
787.sp
788Levels 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 amounts of log data, most of which is extremely cryptic\&.
789.sp
790Note that specifying this parameter here will override the
791\m[blue]\fB\%smb.conf.5.html#\fR\m[]
792parameter in the
793\FCsmb\&.conf\F[]
794file\&.
795.RE
796.PP
797\-V|\-\-version
798.RS 4
799Prints the program version number\&.
800.RE
801.PP
802\-s|\-\-configfile <configuration file>
803.RS 4
804The 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 descriptions of all the services that the server is to provide\&. See
805\FCsmb\&.conf\F[]
806for more information\&. The default configuration file name is determined at compile time\&.
807.RE
808.PP
809\-l|\-\-log\-basename=logdirectory
810.RS 4
811Base directory name for log/debug files\&. The extension
812\fB"\&.progname"\fR
813will be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&.
814.RE
815.SH "NOTES"
816.PP
817This command may be used only by root\&.
818.SH "VERSION"
819.PP
820This man page is correct for version 3 of the Samba suite\&.
821.SH "SEE ALSO"
822.PP
823\fBsmbpasswd\fR(5),
824\fBsamba\fR(7)
825.SH "AUTHOR"
826.PP
827The 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 developed\&.
828.PP
829The pdbedit manpage was written by Simo Sorce and Jelmer Vernooij\&.
Note: See TracBrowser for help on using the repository browser.