basicsmb-hostsequiv.test
来自「samba-3.0.22.tar.gz 编译smb服务器的源码」· TEST 代码 · 共 27 行
TEST
27 行
if [ $whoami = "root" ]; then exit 0;fi. basicsmb.fnstest_listfilesrootnpw() { remote_name="$1" echo $prefix/bin/smbclient //$remote_name/samba -n buildclient -Uroot% -c 'ls' $prefix/bin/smbclient //$remote_name/samba -n buildclient -Uroot% -c 'ls' status=$? if [ $status = 0 ]; then echo "smbd listed files AS ROOT with NO PASSWORD (hosts equiv test)!" return 1 else echo "listing files with smbd failed with status $status (correct)" fi return 0}password="not-a-valid-password"security="hostsequiv"(test_smb_conf_setup ) || exit 1(test_listfilesauth $security) || exit 1(test_listfilesrootnpw $security) || exit 1
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?