From 66cff9fd00b4800a75aeda1985ab1a26f4dfd540 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Wed, 7 Dec 2022 12:05:38 +0200 Subject: 15237 smbsrv-tests: document smb server share setup Reviewed by: Gordon Ross Approved by: Dan McDonald --- usr/src/test/smbsrv-tests/doc/README | 48 ++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/usr/src/test/smbsrv-tests/doc/README b/usr/src/test/smbsrv-tests/doc/README index e83affbb9b..2a6b667c5f 100644 --- a/usr/src/test/smbsrv-tests/doc/README +++ b/usr/src/test/smbsrv-tests/doc/README @@ -38,7 +38,51 @@ To install the full suite, run: -------------------------------------------------------------------------------- -2. Running the SMB Server Test Suite +2. Preparing the SMB Server Share + +When workgroup mode is used, make sure the pam_smb_passwd module is +configured in /etc/pam.conf or in /etc/pam.d: + +other password required pam_smb_passwd.so.1 nowarn + +Add test user: +# useradd test +# smbadm enable-user test +# passwd test + +If needed, add admin user as shown above, and add it to smb group: +# smbadm add-member -m admin@ administrators + +Set smb default settings: + +# sharectl set -p signing_required=false smb +# sharectl set -p signing_enabled=true smb +# svcadm restart network/smb/server + +Create dataset(s): + +Some smbtorture tests do rely on recordsize 4k. + +# zfs create -o recordsize=4k -o casesensitivity=mixed -o nbmand=on \ + /test + +Set permissions: + +# chmod A=everyone@:full_set:fd:allow //test + +Create required snapshots (WPTS needs exactly 3 snapshots): + +# zfs snapshot /test@a +# zfs snapshot /test@b +# zfs snapshot /test@c + +Activate smb share: + +# zfs set sharesmb=name=test /test + +-------------------------------------------------------------------------------- + +3. Running the SMB Server Test Suite The default configuration: /opt/smbsrv-tests/include/default.cfg @@ -68,7 +112,7 @@ as additional arguments to the individual test, eg -------------------------------------------------------------------------------- -3. Test Results +4. Test Results While the SMB Server Test Suite is running, one informational line is printed for each test, ending with one of: -- cgit v1.2.3