SMBD(8) SMBD(8) NAME smbd - SMB/CIFS SYNOPSIS smbd [-D] [-F] [-S] [-i] [-h] [-V] [-b] [-d ] [-l ][-p ] [-O ] [-s ] DESCRIPTION Samba(7) smbd WindowsSMB(CIFS)LanManagerMSCLIENT 3.0 for DOSWindows for WorkgroupsWindows 95/98/MEWindows NTWindows 2000, OS/2DAVE for Macintosh, smbfs for Linux ( smb.conf (5)) smb.conf (5) SIGHUPsmbd OPTIONS -D smbd shellsmbd -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 printcapsmb.conf (5) -d|--debug=debuglevel debuglevel 0100 01 13 smb.conf (5)log level -l|--logfile=logbasename / ".client" -h|--help smbd() -b Prints information about how Samba was built. -l 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 139 TCPSMB()139root1024 - 139139rfc1002.txt4.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 smbdsetuid()uidroot""(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: o 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. o 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 samba3.0 DIAGNOSTICS 3 grep SIGNALS smbdSIGHUPsmb.conf SIGKILL (-9)smbdSIGTERM (-15) smbdsmbcontrol(1) (SIGUSR1SIGUSR2(kill -USR2 )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 sambaAndrew TridgellsambaSamba Team linux samba Karl Auer YODL(ftp://ftp.ice.rug.nl/pub/unix)Jeremy Sllison Samba2.0 Gerald Carter Samba2.2DocBook Alexander Bokovoy Samba 3.0DocBook XML4.2 [] meaculpa [] 2000/12/08 linuxman: http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh SMBD(8)