~ubuntu-branches/ubuntu/maverick/samba/maverick-security

« back to all changes in this revision

Viewing changes to docs/manpages/vfstest.1

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-01-29 06:16:15 UTC
  • mfrom: (0.27.9 upstream) (0.34.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100129061615-37hs6xqpsdhjq3ld
Tags: 2:3.4.5~dfsg-1ubuntu1
* Merge from debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/smb.conf:
    - Add "(Samba, Ubuntu)" to server string.
    - Comment out the default [homes] share, and add a comment about "valid users = %s"
      to show users how to restrict access to \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are allowed to create
      public shares in additon to authenticated ones.
    - add map to guest = Bad user, maps bad username to gues access.
  + debian/samba-common.conf:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/mksambapasswd.awk:
    - Do not add user with UID less than 1000 to smbpasswd.
  + debian/control: 
    - Make libswbclient0 replace/conflict with hardy's likewise-open.
    - Don't build against ctdb, since its not in main yet.
  + debian/rules:
    - Enable "native" PIE hardening.
    - Add BIND_NOW to maximize benefit of RELRO hardening.
  + Add ufw integration:
    - Created debian/samba.ufw.profile.
    - debian/rules, debian/samba.dirs, debian/samba.files: install
  + Add apoort hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + debian/rules, debian/samba.if-up: allow "NetworkManager" as a recognized address
    family... it's obviously /not/ an address family, but it's what gets
    sent when using NM, so we'll cope for now.  (LP: #462169). Taken from karmic-proposed.
  + debian/control: Recommend keyutils for smbfs (LP: #493565)
  + Dropped patches:
    - debian/patches/security-CVE-2009-3297.patch: No longer needed
    - debian/patches/fix-too-many-open-files.patch: No longer needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'\" t
1
2
.\"     Title: vfstest
2
3
.\"    Author: [see the "AUTHOR" section]
3
 
.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4
 
.\"      Date: 10/29/2009
 
4
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
 
5
.\"      Date: 01/18/2010
5
6
.\"    Manual: User Commands
6
7
.\"    Source: Samba 3.4
7
8
.\"  Language: English
8
9
.\"
9
 
.TH "VFSTEST" "1" "10/29/2009" "Samba 3\&.4" "User Commands"
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
 
.if t \{\
37
 
.sp 1
38
 
.\}
39
 
.sp \\n[PD]u
40
 
.nr an-level 1
41
 
.set-an-margin
42
 
.nr an-prevailing-indent \\n[IN]
43
 
.fi
44
 
.in \\n[an-margin]u
45
 
.ti 0
46
 
.HTML-TAG ".NH \\n[an-level]"
47
 
.it 1 an-trap
48
 
.nr an-no-space-flag 1
49
 
.nr an-break-flag 1
50
 
.ps +3
51
 
.ft B
52
 
.ne (2v + 1u)
53
 
.ie n \{\
54
 
.\" if n (TTY output), use uppercase
55
 
.toupper \\$*
56
 
.\}
57
 
.el \{\
58
 
.nr an-break-flag 0
59
 
.\" if not n (not TTY), use normal case (not uppercase)
60
 
\\$1
61
 
.in \\n[an-margin]u
62
 
.ti 0
63
 
.\" if not n (not TTY), put a border/line under subheading
64
 
.sp -.6
65
 
\l'\n(.lu'
66
 
.\}
67
 
..
68
 
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69
 
.\" SS - level-two heading that works better for non-TTY output
70
 
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71
 
.de1 SS
72
 
.sp \\n[PD]u
73
 
.nr an-level 1
74
 
.set-an-margin
75
 
.nr an-prevailing-indent \\n[IN]
76
 
.fi
77
 
.in \\n[IN]u
78
 
.ti \\n[SN]u
79
 
.it 1 an-trap
80
 
.nr an-no-space-flag 1
81
 
.nr an-break-flag 1
82
 
.ps \\n[PS-SS]u
83
 
.ps +2
84
 
.ft B
85
 
.ne (2v + 1u)
86
 
.if \\n[.$] \&\\$*
87
 
..
88
 
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89
 
.\" BB/BE - put background/screen (filled box) around block of text
90
 
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91
 
.de BB
92
 
.if t \{\
93
 
.sp -.5
94
 
.br
95
 
.in +2n
96
 
.ll -2n
97
 
.gcolor red
98
 
.di BX
99
 
.\}
100
 
..
101
 
.de EB
102
 
.if t \{\
103
 
.if "\\$2"adjust-for-leading-newline" \{\
104
 
.sp -1
105
 
.\}
106
 
.br
107
 
.di
108
 
.in
109
 
.ll
110
 
.gcolor
111
 
.nr BW \\n(.lu-\\n(.i
112
 
.nr BH \\n(dn+.5v
113
 
.ne \\n(BHu+.5v
114
 
.ie "\\$2"adjust-for-leading-newline" \{\
115
 
\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
116
 
.\}
117
 
.el \{\
118
 
\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
119
 
.\}
120
 
.in 0
121
 
.sp -.5v
122
 
.nf
123
 
.BX
124
 
.in
125
 
.sp .5v
126
 
.fi
127
 
.\}
128
 
..
129
 
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
130
 
.\" BM/EM - put colored marker in margin next to block of text
131
 
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
132
 
.de BM
133
 
.if t \{\
134
 
.br
135
 
.ll -2n
136
 
.gcolor red
137
 
.di BX
138
 
.\}
139
 
..
140
 
.de EM
141
 
.if t \{\
142
 
.br
143
 
.di
144
 
.ll
145
 
.gcolor
146
 
.nr BH \\n(dn
147
 
.ne \\n(BHu
148
 
\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
149
 
.in 0
150
 
.nf
151
 
.BX
152
 
.in
153
 
.fi
154
 
.\}
155
 
..
 
10
.TH "VFSTEST" "1" "01/18/2010" "Samba 3\&.4" "User Commands"
156
11
.\" -----------------------------------------------------------------
157
12
.\" * set default formatting
158
13
.\" -----------------------------------------------------------------
163
18
.\" -----------------------------------------------------------------
164
19
.\" * MAIN CONTENT STARTS HERE *
165
20
.\" -----------------------------------------------------------------
166
 
.SH "Name"
 
21
.SH "NAME"
167
22
vfstest \- tool for testing samba VFS modules
168
 
.SH "Synopsis"
169
 
.fam C
 
23
.SH "SYNOPSIS"
170
24
.HP \w'\ 'u
171
 
\FCvfstest\F[] [\-d\ debuglevel] [\-c\ command] [\-l\ logdir] [\-h]
172
 
.fam
 
25
vfstest [\-d\ debuglevel] [\-c\ command] [\-l\ logdir] [\-h]
173
26
.SH "DESCRIPTION"
174
27
.PP
175
28
This tool is part of the
176
29
\fBsamba\fR(7)
177
30
suite\&.
178
31
.PP
179
 
\FCvfstest\F[]
 
32
vfstest
180
33
is a small command line utility that has the ability to test dso samba VFS modules\&. It gives the user the ability to call the various VFS functions manually and supports cascaded VFS modules\&.
181
34
.SH "OPTIONS"
182
35
.PP
207
60
Levels 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\&.
208
61
.sp
209
62
Note that specifying this parameter here will override the
210
 
\m[blue]\fBlog level\fR\m[]
 
63
\m[blue]\fB\%smb.conf.5.html#\fR\m[]
211
64
parameter in the
212
 
\FCsmb\&.conf\F[]
 
65
smb\&.conf
213
66
file\&.
214
67
.RE
215
68
.PP
216
 
\-V
 
69
\-V|\-\-version
217
70
.RS 4
218
71
Prints the program version number\&.
219
72
.RE
220
73
.PP
221
 
\-s <configuration file>
 
74
\-s|\-\-configfile <configuration file>
222
75
.RS 4
223
76
The 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
224
 
\FCsmb\&.conf\F[]
 
77
smb\&.conf
225
78
for more information\&. The default configuration file name is determined at compile time\&.
226
79
.RE
227
80
.PP
243
96
.sp -1
244
97
.IP \(bu 2.3
245
98
.\}
246
 
\FCload <module\&.so>\F[]
 
99
load <module\&.so>
247
100
\- Load specified VFS module
248
101
.RE
249
102
.sp
255
108
.sp -1
256
109
.IP \(bu 2.3
257
110
.\}
258
 
\FCpopulate <char> <size>\F[]
 
111
populate <char> <size>
259
112
\- Populate a data buffer with the specified data
260
113
.RE
261
114
.sp
267
120
.sp -1
268
121
.IP \(bu 2.3
269
122
.\}
270
 
\FCshowdata [<offset> <len>]\F[]
 
123
showdata [<offset> <len>]
271
124
\- Show data currently in data buffer
272
125
.RE
273
126
.sp
279
132
.sp -1
280
133
.IP \(bu 2.3
281
134
.\}
282
 
\FCconnect\F[]
 
135
connect
283
136
\- VFS connect()
284
137
.RE
285
138
.sp
291
144
.sp -1
292
145
.IP \(bu 2.3
293
146
.\}
294
 
\FCdisconnect\F[]
 
147
disconnect
295
148
\- VFS disconnect()
296
149
.RE
297
150
.sp
303
156
.sp -1
304
157
.IP \(bu 2.3
305
158
.\}
306
 
\FCdisk_free\F[]
 
159
disk_free
307
160
\- VFS disk_free()
308
161
.RE
309
162
.sp
315
168
.sp -1
316
169
.IP \(bu 2.3
317
170
.\}
318
 
\FCopendir\F[]
 
171
opendir
319
172
\- VFS opendir()
320
173
.RE
321
174
.sp
327
180
.sp -1
328
181
.IP \(bu 2.3
329
182
.\}
330
 
\FCreaddir\F[]
 
183
readdir
331
184
\- VFS readdir()
332
185
.RE
333
186
.sp
339
192
.sp -1
340
193
.IP \(bu 2.3
341
194
.\}
342
 
\FCmkdir\F[]
 
195
mkdir
343
196
\- VFS mkdir()
344
197
.RE
345
198
.sp
351
204
.sp -1
352
205
.IP \(bu 2.3
353
206
.\}
354
 
\FCrmdir\F[]
 
207
rmdir
355
208
\- VFS rmdir()
356
209
.RE
357
210
.sp
363
216
.sp -1
364
217
.IP \(bu 2.3
365
218
.\}
366
 
\FCclosedir\F[]
 
219
closedir
367
220
\- VFS closedir()
368
221
.RE
369
222
.sp
375
228
.sp -1
376
229
.IP \(bu 2.3
377
230
.\}
378
 
\FCopen\F[]
 
231
open
379
232
\- VFS open()
380
233
.RE
381
234
.sp
387
240
.sp -1
388
241
.IP \(bu 2.3
389
242
.\}
390
 
\FCclose\F[]
 
243
close
391
244
\- VFS close()
392
245
.RE
393
246
.sp
399
252
.sp -1
400
253
.IP \(bu 2.3
401
254
.\}
402
 
\FCread\F[]
 
255
read
403
256
\- VFS read()
404
257
.RE
405
258
.sp
411
264
.sp -1
412
265
.IP \(bu 2.3
413
266
.\}
414
 
\FCwrite\F[]
 
267
write
415
268
\- VFS write()
416
269
.RE
417
270
.sp
423
276
.sp -1
424
277
.IP \(bu 2.3
425
278
.\}
426
 
\FClseek\F[]
 
279
lseek
427
280
\- VFS lseek()
428
281
.RE
429
282
.sp
435
288
.sp -1
436
289
.IP \(bu 2.3
437
290
.\}
438
 
\FCrename\F[]
 
291
rename
439
292
\- VFS rename()
440
293
.RE
441
294
.sp
447
300
.sp -1
448
301
.IP \(bu 2.3
449
302
.\}
450
 
\FCfsync\F[]
 
303
fsync
451
304
\- VFS fsync()
452
305
.RE
453
306
.sp
459
312
.sp -1
460
313
.IP \(bu 2.3
461
314
.\}
462
 
\FCstat\F[]
 
315
stat
463
316
\- VFS stat()
464
317
.RE
465
318
.sp
471
324
.sp -1
472
325
.IP \(bu 2.3
473
326
.\}
474
 
\FCfstat\F[]
 
327
fstat
475
328
\- VFS fstat()
476
329
.RE
477
330
.sp
483
336
.sp -1
484
337
.IP \(bu 2.3
485
338
.\}
486
 
\FClstat\F[]
 
339
lstat
487
340
\- VFS lstat()
488
341
.RE
489
342
.sp
495
348
.sp -1
496
349
.IP \(bu 2.3
497
350
.\}
498
 
\FCunlink\F[]
 
351
unlink
499
352
\- VFS unlink()
500
353
.RE
501
354
.sp
507
360
.sp -1
508
361
.IP \(bu 2.3
509
362
.\}
510
 
\FCchmod\F[]
 
363
chmod
511
364
\- VFS chmod()
512
365
.RE
513
366
.sp
519
372
.sp -1
520
373
.IP \(bu 2.3
521
374
.\}
522
 
\FCfchmod\F[]
 
375
fchmod
523
376
\- VFS fchmod()
524
377
.RE
525
378
.sp
531
384
.sp -1
532
385
.IP \(bu 2.3
533
386
.\}
534
 
\FCchown\F[]
 
387
chown
535
388
\- VFS chown()
536
389
.RE
537
390
.sp
543
396
.sp -1
544
397
.IP \(bu 2.3
545
398
.\}
546
 
\FCfchown\F[]
 
399
fchown
547
400
\- VFS fchown()
548
401
.RE
549
402
.sp
555
408
.sp -1
556
409
.IP \(bu 2.3
557
410
.\}
558
 
\FCchdir\F[]
 
411
chdir
559
412
\- VFS chdir()
560
413
.RE
561
414
.sp
567
420
.sp -1
568
421
.IP \(bu 2.3
569
422
.\}
570
 
\FCgetwd\F[]
 
423
getwd
571
424
\- VFS getwd()
572
425
.RE
573
426
.sp
579
432
.sp -1
580
433
.IP \(bu 2.3
581
434
.\}
582
 
\FCutime\F[]
 
435
utime
583
436
\- VFS utime()
584
437
.RE
585
438
.sp
591
444
.sp -1
592
445
.IP \(bu 2.3
593
446
.\}
594
 
\FCftruncate\F[]
 
447
ftruncate
595
448
\- VFS ftruncate()
596
449
.RE
597
450
.sp
603
456
.sp -1
604
457
.IP \(bu 2.3
605
458
.\}
606
 
\FClock\F[]
 
459
lock
607
460
\- VFS lock()
608
461
.RE
609
462
.sp
615
468
.sp -1
616
469
.IP \(bu 2.3
617
470
.\}
618
 
\FCsymlink\F[]
 
471
symlink
619
472
\- VFS symlink()
620
473
.RE
621
474
.sp
627
480
.sp -1
628
481
.IP \(bu 2.3
629
482
.\}
630
 
\FCreadlink\F[]
 
483
readlink
631
484
\- VFS readlink()
632
485
.RE
633
486
.sp
639
492
.sp -1
640
493
.IP \(bu 2.3
641
494
.\}
642
 
\FClink\F[]
 
495
link
643
496
\- VFS link()
644
497
.RE
645
498
.sp
651
504
.sp -1
652
505
.IP \(bu 2.3
653
506
.\}
654
 
\FCmknod\F[]
 
507
mknod
655
508
\- VFS mknod()
656
509
.RE
657
510
.sp
663
516
.sp -1
664
517
.IP \(bu 2.3
665
518
.\}
666
 
\FCrealpath\F[]
 
519
realpath
667
520
\- VFS realpath()
668
521
.sp
669
522
.RE
678
531
.sp -1
679
532
.IP \(bu 2.3
680
533
.\}
681
 
\FCconf <smb\&.conf>\F[]
 
534
conf <smb\&.conf>
682
535
\- Load a different configuration file
683
536
.RE
684
537
.sp
690
543
.sp -1
691
544
.IP \(bu 2.3
692
545
.\}
693
 
\FChelp [<command>]\F[]
 
546
help [<command>]
694
547
\- Get list of commands or info about specified command
695
548
.RE
696
549
.sp
702
555
.sp -1
703
556
.IP \(bu 2.3
704
557
.\}
705
 
\FCdebuglevel <level>\F[]
 
558
debuglevel <level>
706
559
\- Set debug level
707
560
.RE
708
561
.sp
714
567
.sp -1
715
568
.IP \(bu 2.3
716
569
.\}
717
 
\FCfreemem\F[]
 
570
freemem
718
571
\- Free memory currently in use
719
572
.RE
720
573
.sp
726
579
.sp -1
727
580
.IP \(bu 2.3
728
581
.\}
729
 
\FCexit\F[]
 
582
exit
730
583
\- Exit vfstest
731
584
.SH "VERSION"
732
585
.PP