1 if [ $whoami = "root" ]; then
7 test_listfilesrootnpw() {
9 echo $prefix/bin/smbclient //$remote_name/samba -n buildclient -Uroot% -c 'ls'
10 $prefix/bin/smbclient //$remote_name/samba -n buildclient -Uroot% -c 'ls'
12 if [ $status = 0 ]; then
13 echo "smbd listed files AS ROOT with NO PASSWORD (hosts equiv test)!"
16 echo "listing files with smbd failed with status $status (correct)"
21 password="not-a-valid-password"
23 (test_smb_conf_setup ) || exit 1
25 (test_listfilesauth $security) || exit 1
26 (test_listfilesrootnpw $security) || exit 1