您当前的位置:首页 > 电脑办公 > Linux教程
| PPT | 电脑打字 | 计算机基础 | word | excel | Linux教程 |

自学教程:Linux testparm命令

51自学网 2023-01-07 20:47:20
  Linux教程
这篇教程Linux testparm命令写得很实用,希望能帮到您。

Linux testparm命令用于测试Samba的设置是否正确无误。

执行testparm(test parameter)指令可以简单测试Samba的配置文件,假如测试结果无误,Samba常驻服务就能正确载入该设置值,但并不保证其后的操作如预期般一切正常。

语法

testparm [-s][配置文件][<主机名称><IP地址>]

参数说明

  • -s 不显示提示符号等待用户按下Enter键,就直接列出Samba服务定义信息。

实例

查看Ssmba配置

# testparm     Load smb config files from /etc/samba/smb.confProcessing section '[homes]'Processing section '[printers]'Processing section '[uptech]'Processing section '[home]'Loaded services file OK.Server role: ROLE_STANDALONEPress enter to see a dump of your service definitions      ///按下回车继续# Global parameters[global]workgroup = MYGROUPserver string = Samba Serversecurity = SHAREencrypt passwords = Nopassword server = Nonelog file = /var/log/samba/%m.logmax log size = 50socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192printcap name = /etc/printcapdns proxy = Noidmap uid = 16777216-33554431idmap gid = 16777216-33554431cups options = raw[homes]comment = Home Directoriesread only = Nobrowseable = No[printers]comment = All Printerspath = /var/spool/sambaprintable = Yesbrowseable = No[uptech]comment = *path = /home/uptechread only = Noguest ok = Yes[home]comment = *path = /homeread only = Noguest ok = Yes

Linux smbd命令
Linux smbclient命令
51自学网,即我要自学网,自学EXCEL、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。
京ICP备13026421号-1