Ignore:
Timestamp:
Mar 1, 2010, 3:05:48 PM (15 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3.x to 3.3.11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/docs/manpages/smbd.8

    r368 r411  
    1 '\" t
    21.\"     Title: smbd
    32.\"    Author: [see the "AUTHOR" section]
    4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
    5 .\"      Date: 01/14/2010
     3.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
     4.\"      Date: 02/22/2010
    65.\"    Manual: System Administration tools
    76.\"    Source: Samba 3.3
    87.\"  Language: English
    98.\"
    10 .TH "SMBD" "8" "01/14/2010" "Samba 3\&.3" "System Administration tools"
     9.TH "SMBD" "8" "02/22/2010" "Samba 3\&.3" "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..
    11159.\" -----------------------------------------------------------------
    12160.\" * set default formatting
     
    19167.\" * MAIN CONTENT STARTS HERE *
    20168.\" -----------------------------------------------------------------
    21 .SH "NAME"
     169.SH "Name"
    22170smbd \- server to provide SMB/CIFS services to clients
    23 .SH "SYNOPSIS"
     171.SH "Synopsis"
     172.fam C
    24173.HP \w'\ 'u
    25 smbd [\-D] [\-F] [\-S] [\-i] [\-h] [\-V] [\-b] [\-d\ <debug\ level>] [\-l\ <log\ directory>] [\-p\ <port\ number(s)>] [\-P\ <profiling\ level>] [\-O\ <socket\ option>] [\-s\ <configuration\ file>]
     174\FCsmbd\F[] [\-D] [\-F] [\-S] [\-i] [\-h] [\-V] [\-b] [\-d\ <debug\ level>] [\-l\ <log\ directory>] [\-p\ <port\ number(s)>] [\-P\ <profiling\ level>] [\-O\ <socket\ option>] [\-s\ <configuration\ file>]
     175.fam
    26176.SH "DESCRIPTION"
    27177.PP
     
    30180suite\&.
    31181.PP
    32 smbd
     182\FCsmbd\F[]
    33183is the server daemon that provides filesharing and printing services to Windows clients\&. The server provides filespace and printer services to clients using the SMB (or CIFS) protocol\&. This is compatible with the LanManager protocol, and can service LanManager clients\&. These include MSCLIENT 3\&.0 for DOS, Windows for Workgroups, Windows 95/98/ME, Windows NT, Windows 2000, OS/2, DAVE for Macintosh, and smbfs for Linux\&.
    34184.PP
     
    43193.PP
    44194The configuration file, and any files that it includes, are automatically reloaded every minute, if they change\&. You can force a reload by sending a SIGHUP to the server\&. Reloading the configuration file will not affect connections to any service that is already established\&. Either the user will have to disconnect from the service, or
    45 smbd
     195\FCsmbd\F[]
    46196killed and restarted\&.
    47197.SH "OPTIONS"
     
    50200.RS 4
    51201If specified, this parameter causes the server to operate as a daemon\&. That is, it detaches itself and runs in the background, fielding requests on the appropriate port\&. Operating the server as a daemon is the recommended way of running
    52 smbd
     202\FCsmbd\F[]
    53203for servers that provide more than casual use file and print services\&. This switch is assumed if
    54 smbd
     204\FCsmbd \F[]
    55205is executed on the command line of a shell\&.
    56206.RE
     
    59209.RS 4
    60210If specified, this parameter causes the main
    61 smbd
     211\FCsmbd\F[]
    62212process to not daemonize, i\&.e\&. double\-fork and disassociate with the terminal\&. Child processes are still created as normal to service each connection request, but the main process does not exit\&. This operation mode is suitable for running
    63 smbd
     213\FCsmbd\F[]
    64214under process supervisors such as
    65 supervise
     215\FCsupervise\F[]
    66216and
    67 svscan
     217\FCsvscan\F[]
    68218from Daniel J\&. Bernstein\'s
    69 daemontools
     219\FCdaemontools\F[]
    70220package, or the AIX process monitor\&.
    71221.RE
     
    74224.RS 4
    75225If specified, this parameter causes
    76 smbd
     226\FCsmbd\F[]
    77227to log to standard output rather than a file\&.
    78228.RE
     
    80230\-i
    81231.RS 4
    82 If this parameter is specified it causes the server to run "interactively", not as a daemon, even if the server is executed on the command line of a shell\&. Setting this parameter negates the implicit deamon mode when run from the command line\&.
    83 smbd
     232If this parameter is specified it causes the server to run "interactively", not as a daemon, even if the server is executed on the command line of a shell\&. Setting this parameter negates the implicit daemon mode when run from the command line\&.
     233\FCsmbd\F[]
    84234also logs to standard output, as if the
    85 \-S
     235\FC\-S\F[]
    86236parameter had been given\&.
    87237.RE
     
    99249\m[blue]\fB\%smb.conf.5.html#\fR\m[]
    100250parameter in the
    101 smb\&.conf
     251\FCsmb\&.conf\F[]
    102252file\&.
    103253.RE
     
    111261.RS 4
    112262The 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
    113 smb\&.conf
     263\FCsmb\&.conf\F[]
    114264for more information\&. The default configuration file name is determined at compile time\&.
    115265.RE
     
    138288\m[blue]\fBports\fR\m[]
    139289parameter in
    140 smb\&.conf
     290\FCsmb\&.conf\F[]
    141291.sp
    142292The default ports are 139 (used for SMB over NetBIOS over TCP) and port 445 (used for plain SMB over TCP)\&.
     
    150300.SH "FILES"
    151301.PP
    152 /etc/inetd\&.conf
     302\FC/etc/inetd\&.conf\F[]
    153303.RS 4
    154304If the server is to be run by the
    155 inetd
     305\FCinetd\F[]
    156306meta\-daemon, this file must contain suitable startup information for the meta\-daemon\&.
    157307.RE
    158308.PP
    159 /etc/rc
     309\FC/etc/rc\F[]
    160310.RS 4
    161311or whatever initialization script your system uses)\&.
     
    164314.RE
    165315.PP
    166 /etc/services
     316\FC/etc/services\F[]
    167317.RS 4
    168318If running the server via the meta\-daemon
    169 inetd, this file must contain a mapping of service name (e\&.g\&., netbios\-ssn) to service port (e\&.g\&., 139) and protocol type (e\&.g\&., tcp)\&.
    170 .RE
    171 .PP
    172 /usr/local/samba/lib/smb\&.conf
     319\FCinetd\F[], this file must contain a mapping of service name (e\&.g\&., netbios\-ssn) to service port (e\&.g\&., 139) and protocol type (e\&.g\&., tcp)\&.
     320.RE
     321.PP
     322\FC/usr/local/samba/lib/smb\&.conf\F[]
    173323.RS 4
    174324This is the default location of the
    175325\fBsmb.conf\fR(5)
    176326server configuration file\&. Other common places that systems install this file are
    177 /usr/samba/lib/smb\&.conf
     327\FC/usr/samba/lib/smb\&.conf\F[]
    178328and
    179 /etc/samba/smb\&.conf\&.
     329\FC/etc/samba/smb\&.conf\F[]\&.
    180330.sp
    181331This file describes all the services the server is to make available to clients\&. See
     
    186336.PP
    187337On some systems
    188 smbd
     338\FCsmbd\F[]
    189339cannot change uid back to root after a setuid() call\&. Such systems are called trapdoor uid systems\&. If you have such a system, you will be unable to connect from a client (such as a PC) as two different users at once\&. Attempts to connect the second user will result in access denied or similar\&.
    190340.SH "ENVIRONMENT VARIABLES"
     
    236386.PP
    237387Samba stores it\'s data in several TDB (Trivial Database) files, usually located in
    238 /var/lib/samba\&.
     388\FC/var/lib/samba\F[]\&.
    239389.PP
    240390(*) information persistent across restarts (but not necessarily important to backup)\&.
     
    342492.PP
    343493Sending the
    344 smbd
     494\FCsmbd\F[]
    345495a SIGHUP will cause it to reload its
    346 smb\&.conf
     496\FCsmb\&.conf\F[]
    347497configuration file within a short period of time\&.
    348498.PP
    349499To shut down a user\'s
    350 smbd
     500\FCsmbd\F[]
    351501process it is recommended that
    352 SIGKILL (\-9)
     502\FCSIGKILL (\-9)\F[]
    353503\fINOT\fR
    354504be used, except as a last resort, as this may leave the shared memory area in an inconsistent state\&. The safe way to terminate an
    355 smbd
     505\FCsmbd\F[]
    356506is to send it a SIGTERM (\-15) signal and wait for it to die on its own\&.
    357507.PP
    358508The debug log level of
    359 smbd
     509\FCsmbd\F[]
    360510may be raised or lowered using
    361511\fBsmbcontrol\fR(1)
     
    363513.PP
    364514Note that as the signal handlers send a debug write, they are not re\-entrant in
    365 smbd\&. This you should wait until
    366 smbd
     515\FCsmbd\F[]\&. This you should wait until
     516\FCsmbd\F[]
    367517is in a state of waiting for an incoming SMB before issuing them\&. It is possible to make the signal handlers safe by un\-blocking the signals before the select call and re\-blocking them after, however this would affect performance\&.
    368518.SH "SEE ALSO"
     
    375525\fBtestparm\fR(1),
    376526\fBtestprns\fR(1), and the Internet RFC\'s
    377 rfc1001\&.txt,
    378 rfc1002\&.txt\&. In addition the CIFS (formerly SMB) specification is available as a link from the Web page
     527\FCrfc1001\&.txt\F[],
     528\FCrfc1002\&.txt\F[]\&. In addition the CIFS (formerly SMB) specification is available as a link from the Web page
    379529http://samba\&.org/cifs/\&.
    380530.SH "AUTHOR"
Note: See TracChangeset for help on using the changeset viewer.