linux test 指令大全,Linux testparm命令

Linux testparm命令

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

执行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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值