最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Linux testparm命令详解 Linux testparm命令怎么用
时间:2022-06-30 16:33:51 编辑:袖梨 来源:一聚教程网
执行testparm(test parameter)指令可以简单测试Samba的配置文件,假如测试结果无误,Samba常驻服务就能正确载入该设置值,但并不保证其后的操作如预期般一切正常。
语法
testparm [-s][配置文件][<主机名称>
参数说明:
- -s 不显示提示符号等待用户按下Enter键,就直接列出Samba服务定义信息。
实例
查看Ssmba配置
# testparm
Load smb config files from /etc/samba/smb.conf
Processing section '[homes]'
Processing section '[printers]'
Processing section '[uptech]'
Processing section '[home]'
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
///按下回车继续 #
Global parameters
[global]
workgroup = MYGROUP
server string = Samba Server
security = SHARE
encrypt passwords = No
password server = None
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[uptech]
comment = *
path = /home/uptech
read only = No
guest ok = Yes
[home]
comment = *
path = /home
read only = No
guest ok = Yes
相关文章
- 《女神异闻录:夜幕魅影》厄抑异象之境有哪些玩法 06-16
- 最火币圈十大全球交易所现货交易TOP10-去中心化币圈交易所币安交易所推荐 06-16
- 《无限暖暖》我是愿望神给我噗灵任务达成技巧总结 06-16
- 如何获取SOLX币?2025OKX交易所简单教程 06-16
- SNORT币支持跨境支付吗-2025币安交易所潜力分析 06-16
- 《道友请留步》冬傲雪新变装图片及获得方法有哪些 06-16