SMBD
目录
SMBD
NAMEæ»è§ SYNOPSIS
æè¿° DESCRIPTION
é项 OPTIONS
æä»¶ FILES
éå¶ LIMITATIONS
ç¯å¢åé ENVIRONMENT VARIABLES
PAM INTERACTION
çæ¬ VERSION
è¯æ DIAGNOSTICS
ä¿¡å· SIGNALS
åè§ SEE ALSO
ä½è AUTHOR
[䏿çç»´æ¤äºº]
[ä¸æçææ°æ´æ°]
ãä¸å½linux论åmanæå页翻è¯è®¡åã:
è·
NAME
smbd - åå®¢æ·æä¾SMB/CIFSæå¡çæå¡å¨
æ»è§ SYNOPSIS
smbd [-D] [-F] [-S] [-i] [-h] [-V] [-b] [-d <debug level>] [-l <log directory>][-p <port number>] [-O <socket option>] [-s <configuration file>]
æè¿° DESCRIPTION
æ¤ç¨åºæ¯Samba(7) å¥ä»¶çä¸é¨åã
smbd æ¯åWindowså®¢æ·æºæä¾æä»¶å±äº«åæå°æå¡çæå¡å¨è¿ç¨ã该æå¡å¨ç¨SMB(æCIFS)åè®®åå®¢æ·æä¾æä»¶å- æ¾ç©ºé´åæå°æå¡ãå®ä¸LanManageråè®®å¼å®¹å¹¶è½åä½¿ç¨æ- ¤åè®®çå®¢æ·æä¾æå¡ãè¿äºå®¢æ·ç«¯åæ¬MSCLIENT 3.0 for DOSï¼Windows for Workgroupsï¼Windows 95/98/MEï¼Windows NTï¼Windows 2000, OS/2ï¼DAVE for Macintosh, åsmbfs for Linuxã
ç¨æ¥æ§å¶æå¡å±æ§çéç½®æä»¶çæå页ä¸å¯¹æå¡å¨å¯æä¾çæå¡è¿è¡äºè¯¦ç»çæè¿°(åè§ smb.conf (5))ãæ¤æåä¸æè¿°æä¾çæå¡ä½éä¸è®²è¿°äºå¯¹ç®¡çæå¡å¨è¿è¡ç- æ¹é¢çé®é¢æè¿°ã
请注æå¯¹æå¡å¨è¿è¡æå³çé常éè¦çå®å¨æ§é®é¢ï¼åæ¶å¨è¿è¡å®è£å¤çåä¹åºè¯¥ä»ç»é读smb.conf (5)æåã
åªè¦æå®¢æ·è¯·æ±å°±ä¼å»ºç«ä¸ä¸ªå¯¹è¯ã对æ¯ä¸ªå¯¹è¯ï¼æ¯ä¸ªå®¢æ·è·å¾æå¡å¨çä¸ä»½å¤æ¬ãå¨å¯¹è¯æé´æ- ¤å¤æ¬å¯¹ææå®¢æ·äº§ççè¿æ¥è¿è¡æå¡ã彿¥èªæ¤å®¢æ·çææè¿æ¥é½å³éæ¶ï¼æ- ¤å®¢æ·çæå¡å¨å¤æ¬ä¹éåºã
æå¡å¨æåå«çéç½®æä»¶åå¶å®ä»»ä½æä»¶é½ä¼å¨æ¯æ¬¡æ´æ¹åèªå¨éæ°è£å¥ãä½å¯ä»¥éè¿å¯¹æå¡å¨åéä¸ä¸ªSIGHUPä¿¡æ¯æ¥å¼ºå¶ä¸æ¬¡éæ°è£å¥ãéæ°è£å¥éç½®æä»¶å¯¹å·²å»ºç«çä»»ä½å¯¹æå¡çè¿æ¥åææãè¦ä¹ç¨æ·å¿é¡»æ- 弿å¡ï¼è¦ä¹å°smbdè¿ç¨ä¸æ¢å¹¶éå¯ã
é项 OPTIONS
|
-D |
妿æå®æ- ¤é项ï¼åæå¡å¨ä»¥åå°è¿ç¨æ¹å¼è¿è¡ãå³ï¼å®ä¼å离æ¬èº«å¹¶å¨åå°è¿è¡ï¼å¨éå½ç端å£ä¸çå¬è¯·æ±ãå¯¹äºæä¾æ¯ä¸´æ¶æ§çæä»¶åæå°æå¡æ´å¤å容çæå¡å¨ï¼æ¨èå°smbd 以åå°è¿ç¨æ¹å¼è¿è¡ã妿å¨shellå½ä»¤è¡è¿è¡smbd ï¼å°é»è®¤ä½¿ç¨è¿ä¸ªé项ã | ||
|
-F |
If specified, this parameter causes the main smbd process 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 smbd under process supervisors such as supervise and svscan from Daniel J. Bernstein’s daemontools package, or the AIX process monitor. | ||
|
-S |
If specified, this parameter causes smbd to log to standard output rather than a file. | ||
|
-i |
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. smbd also logs to standard output, as if the -S parameter had been given. | ||
|
-V |
æå°smbdççæ¬å·ã |
-s <configuration file>
æå®çæä»¶åå«äºæå¡å¨æéçéç½®ç»èãæ¤æä»¶ä¸- çä¿¡æ¯åå«å¦æç¨çprintcapæä»¶è¿æ·çæå¡å¨è¯¦ç»ä¿¡æ¯ï¼åæ¶ä¹å¯¹æå¡å¨ææä¾çæå¡è¿è¡äºæè¿°ã请åè§smb.conf (5)æä»¶ã缺ççéç½®æä»¶åå¨è½¯ä»¶åç¼è¯æ¶å³å®ã
-d|--debug=debuglevel
debuglevel æ¯ä¸ä¸ªä»0å°10çæ´æ°ãå¦ææ²¡ææå®æ¤åæ°åé»è®¤ç弿¯0ã
妿è¿ä¸ªå¼è¶é«ï¼è¶å¤å³äºæå¡å¨çè¯¦ç»æ´»å¨ä¿¡æ¯å°è¢«è®°å½å°æä»¶ä¸- ãå¨0è°è¯çº§æ¶ï¼åªè®°å½ç´§æ¥é误å严éè- ¦åã对äºå¹³æ¥çè¿è¡æå¡ï¼1è°è¯çº§æ¯ä¸ªåççç- 级ï¼å®åªäº§çå°éçå³äºæ§è¡æä½çä¿¡æ¯ã
1以ä¸çè°è¯çº§å°äº§çç¸å½å¤çè®°å½æ°æ®ï¼å¹¶ä¸åªå¨è§£å³é®é¢æ¶ææç¨ã3以ä¸çè°è¯çº§åªè¢«è®¾è®¡ä¸ºè®©å¼åè使ç¨å¹¶ä¼äº§çæå¤§æ°éçè®°å½æ°æ®ï¼èä¸å¶ä¸- å¾å¤é¨åé常é¾ä»¥çè§£ã
注æå¨æ¤ä½¿ç¨è¿ä¸ªåæ°å°è¶è¿å¨smb.conf (5)æä»¶ä¸çlog levelåæ°ã
-l|--logfile=logbasename
ç¨æ¥è®°å½/è°è¯çæä»¶ãä¼èªå¨ä¸ºå®æ·»å ".client" æ©å±åã客æ·ç«¯ä¸ä¼å°è®°å½æä»¶å é¤ã
-h|--help
æå°smbdçå½ä»¤è¡åæ°(ç¨æ³)ã
|
-b |
Prints information about how Samba was built. |
-l <log directory>
If specified, log directory specifies a log directory into which the "log.smbd" log file will be created for informational and debug messages from the running server. The log file generated is never removed by the server although its size may be controlled by the max log size option in the smb.conf(5) file. Beware: If the directory specified does not exist, smbd will log to the default debug log location defined at compile time.
The default log directory is specified at compile time.
-p <port number>
port number 端å£å·æ¯ä¸ªæ£å¼æ´æ°ã妿æ¤éé¡¹æªæå®å缺çå¼ä¸º139ã
è¿ä¸ªç«¯å£å·ç¨äºä»å®¢æ·ç«¯å»ºç«å¯¹æå¡å¨çè¿æ¥ãåºäºTCPä¸çSMBæç¨çæå(é常使ç¨ç)端å£å·ä¸º139ï¼åæ- ¤è¿æ¯ç¼ºçå¼ã妿ä½å¸æä½ä¸ºæ®éç¨æ·è䏿¯root身份è¿è¡æå¡å¨çè¯ï¼å¤æ°ç³»ç»ä¼è¦æ±ä½ä½¿ç¨1024以ä¸ç端å£å· - å¦ææ¤æåµè¯·åç³»ç»ç®¡çååå¾å¸®å©ã
为äºä½¿æ´å¤å®¢æ·ä½¿ç¨æå¡å¨ï¼èåå¨139以å¤ç端å£è¿è¡éç½®ï¼åä½éè¦å¨ç«¯å£139ä¸è¿è¡ç«¯å£éå®åï¼å¨rfc1002.txtç4.3.5é¨åæè¯¦ç»çæè¿°ã
é¤ä¸è¿°æåµä»¥å¤ï¼æ¤é项é常ä¸ç¨ã
æä»¶ FILES
/etc/inetd.conf
妿éè¿inetd è¶çº§è¿ç¨æ¥è¿è¡æå¡å¨ï¼åæ¤æä»¶å¿é¡»å«æéå½çå¯å¨ä¿¡æ¯ã
/etc/rc
(æå¶å®ä½ çç³»ç»æç¨çåå§åèæ¬)ã
妿å¨å¯å¨æ¶ä»¥åå°è¿ç¨æ¨¡å¼è¿è¡æå¡å¨ï¼åæ- ¤æä»¶é¡»åå«éå½çæå¡å¨å¯å¨æ¬¡åºã
/etc/services
妿éè¿inetdè¶çº§è¿ç¨æ¥è¿è¡æå¡å¨ï¼åæ- ¤æä»¶å¿é¡»åå«ä¸ä»½æå¡ç«¯å£(å¦139)åå议类å(å¦tcp)ä¸å¯¹åºçæå¡å(å¦netbios-ssn)çæå°ã
/usr/local/samba/lib/smb.conf
缺ççæå¡å¨éç½®æä»¶ smb.conf(5)çåæ¾ä½ç½®ãç³»ç»å®è£æ- ¤æä»¶çå¶å®é常ä½ç½®ä¸º /usr/samba/lib/smb.confå/etc/samba/smb.confã
æ¤æä»¶æè¿°äºå®¢æ·å¯è·å¾çæå¡é¡¹çæåµãåè§smb.conf(5)è·å¾æ´å¤æåµã
éå¶ LIMITATIONS
卿äºç³»ç»ä¸ï¼smbdææ³å¨ä¸æ¬¡setuid()è°ç¨ä»¥åæuidè¿åå°rootãè¿æ·çç³»ç»ç§°ä¸ºâé·é¨â(trapdoor)uidç³»ç»ã妿ä½ä½¿ç¨è¿æ·çç³»ç»ï¼å°ææ³åæ¶å¨ä¸ä¸ªå®¢æ·ç«¯(å¦ä¸å°PCæº)以两个ä¸åçç¨æ·èº«ä»½è¿è¡è¿æ¥ãè¯å¾è¿æ¥ç¬¬äºä¸ªç¨æ·å°å¾å°â访é®è¢«æâæç±»ä¼¼çç»æã
ç¯å¢åé ENVIRONMENT VARIABLES
PRINTER
妿坹坿尿塿²¡ææå®æå°åç§°ï¼å¤æ°ç³»ç»å°ä½¿ç¨æ¤åé(妿æªå®ä¹æ- ¤åéåç¨lp )çå¼ä½ä¸ºå¯ç¨æå°æºçåç§°ãä½å¹¶ä¸æ¯æå¡å¨ç¹å®çã
PAM INTERACTION
Samba uses PAM for authentication (when presented with a plaintext password), for account checking (is this account disabled?) and for session management. The degree too which samba supports PAM is restricted by the limitations of the SMB protocol and the obey pam restrictions smb.conf(5) paramater. When this is set, the following restrictions apply:
|
• |
Account Validation: All accesses to a samba server are checked against PAM to see if the account is vaild, not disabled and is permitted to login at this time. This also applies to encrypted logins. | ||
|
• |
Session Management: When not using share level secuirty, users must pass PAM’s session checks before access is granted. Note however, that this is bypassed in share level secuirty. Note also that some older pam configuration files may need a line added for session support. |
çæ¬ VERSION
æ¤æå页æ¯é对sambaå¥ä»¶çæ¬3.0çã
è¯æ DIAGNOSTICS
é常æåµä¸è¯æä¿¡æ¯é½è®°å½å°æå®å¥½çè®°å½æä»¶ä¸- ãè¿ä¸ªæä»¶çåç§°æ¯å¨ç¼è¯æ¶æå®çï¼ä½ä¹å¯ä»¥ç¨å½ä»¤è¡æ¥æå®ã
ç¨æ·å¯ä»¥å¾å°çè¯æä¿¡æ¯çæ°éåç§ç±»åå³äºç¨æ·æ§è¡å®¢æ·ç«¯ç¨åºæ¶æç¨çè°è¯ç- 级ãå¦æä½ åç°æé®é¢çè¯ï¼æè°è¯çº§è®¾å°3并详ç»éè¯»è®°å½æä»¶éçå容ã
å¾å¤ä¿¡æ¯é½æ é¡»å 以说æãä¸å¹¸çæ¯ï¼å¨åæå页æ¶ï¼æºä»£ç 䏿ç太å¤çè¯æ- ä¿¡æ¯ï¼å®ä»¬ä¿è¯äºå¯¹æ¯ç§æåµé½å 以æè¿°ï¼å´æ æ³åå¥ææ¡£ã卿- ¤æ¶ï¼ä½ æå¥½è¿æ¯ç¨grepæ¥æ¾æºä»£ç å¹¶æ£æ¥å¼èµ·è¯æä¿¡æ¯çæ¡ä»¶ã
ä¿¡å· SIGNALS
åsmbdåéä¸ä¸ªSIGHUPä¿¡å·å¯ä»¥ä½¿å®å¨ä¸ä¸ªå¾ç- æ¶é´åéæ°è£å¥smb.conféç½®æä»¶ã
æä»¬ ä¸ æ¨èä½ ä½¿ç¨SIGKILL (-9)æ¥ç»æ- ¢smbdè¿ç¨é¤éè¿æ¯æåçæ¹æ³ï¼å ä¸ºè¿æ ·åå¯è½å¯¼è´ååæ°æ®åºä¸ä¸è´ãæ- £ç¡®çæ¹æ³æ¯åéSIGTERM (-15)ä¿¡å·å¹¶çå¾ç¨åºèªè¡ç»æã
å¦å¤ï¼smbdç¨åºçè°è¯è®°å½ç级ä¹å¯ä»¥éè¿smbcontrol(1) è°é«æèè°ä½ã(åç¨åºåéä¸ä¸ªSIGUSR1æSIGUSR2ä¿¡å·(kill -USR2 <nmbd-pid>)çæ¹æ³å¨Samba2.2 ä¸å·²ç»ä¸å使ç¨ã) éè¿ä½¿ç¨è¿æ ·çæ¹æ³å¯ä»¥è¯æä¸äºææ¶çé®é¢ï¼åæ¶ä»ç¶å¯ä»¥å¨ä¸ä¸ªæ- £å¸¸çå¹¶ä¸è¾ä½çè®°å½ç级æ¥è¿è¡ã
Note that as the signal handlers send a debug write, they are not re-entrant in smbd. This you should wait untilsmbd is 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.
åè§ SEE ALSO
hosts_access(5), inetd(8), nmbd(8), smb.conf(5), smbclient(1), testparm(1), testprns(1), è¿æäºèç½èæ¡ rfc1001.txt, rfc1002.txt. å¦å¤ï¼CIFS (ä»åç SMB) è§çº¦å¯ä»¥å¨ http://samba.org/cifs/ç½é¡µä¸æ¾å°é¾æ¥ã
ä½è AUTHOR
samba软件åç¸å³å·¥å·æåç±Andrew Tridgellå建ãsambaç°å¨ç±Samba Team ä½ä¸ºå¼æºè½¯ä»¶æ¥åå±ï¼ç±»ä¼¼linuxåæ ¸çå¼åæ¹å¼ã
æåçsambaæåé¡µæ¯ Karl Aueråçã æå页æºçå·²ç»è½¬æ¢ä¸ºYODLæ¼å¼(å¦ä¸ç§å¾å¥½ç弿ºè½¯ä»¶ï¼å¯ä»¥å¨ftp://ftp.ice.rug.nl/pub/unixæ¾å°)ï¼ç±Jeremy Sllison æ´æ°å°Samba2.0 çæ¬ã Gerald Carter å¨Samba2.2ä¸- å°å®è½¬å为DocBook æ ¼å¼ã Alexander Bokovoy å¨Samba 3.0ä¸å®ç°äºDocBook XML4.2 æ ¼å¼ç转æ¢ã
[䏿çç»´æ¤äºº]
meaculpa <meaculpa@21cn.com>
[ä¸æçææ°æ´æ°]
2000/12/08
ãä¸å½linux论åmanæå页翻è¯è®¡åã:
http://cmpp.linuxforum.net
è·
æ¬é¡µé¢ä¸æçç±ä¸æ
man
æå页计åæä¾ã
䏿 man
æå页计åï¼https://github.com/man-pages-zh/manpages-zh