Linux smbd command
The Linux smbd command is used for the Samba server program.
smbd is the Samba server program, which can share files, printers, and other network resources for access by Windows-related client programs.
Syntax
smbd [-aDhoP][-d<排错层级>][-i<范围>][-l<记录文件>][-O<连接槽选项>][-p<连接端口编号>][-s<配置文件>]
Parameter Description:
- -a All connection records are added to the log file.
- -d
Specify the level of detail of events recorded in the log file. - -D When this parameter is used, smbd runs in the background as a daemon.
- -h Display help.
- -i
Specify the NetBIOS name scope. - -l
Specify the name of the log file. - -o On each startup, the existing log file is overwritten.
- -O
Set the socket options. - -p
Set the connection port number. - -P Only used to test the correctness of the smbd program.
- -s
Specify the configuration file for smbd.
Example
Start the Samba server
# smbd -D
Linux Command Reference