summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Kozhukhov <igor@dilos.org>2018-06-30 21:39:05 +0300
committerPrakash Surya <prakash.surya@delphix.com>2018-09-17 10:24:36 -0700
commit09b2abb464ff7bbef397718b20686211ee1f1ddb (patch)
tree9ecbd110d28d8418f7875b796de6bf736554ed68
parent002c14a113236969185bd1db508bf126971502be (diff)
downloadillumos-joyent-09b2abb464ff7bbef397718b20686211ee1f1ddb.tar.gz
9635 we should enable user after creation with zfs tests
Reviewed by: John Kennedy <john.kennedy@delphix.com> Approved by: Joshua M. Clulow <josh@sysmgr.org>
-rw-r--r--usr/src/test/zfs-tests/include/commands.cfg2
-rw-r--r--usr/src/test/zfs-tests/include/libtest.shlib1
-rw-r--r--usr/src/test/zfs-tests/tests/functional/delegate/zfs_allow_001_pos.ksh1
-rw-r--r--usr/src/test/zfs-tests/tests/functional/privilege/setup.ksh1
4 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/test/zfs-tests/include/commands.cfg b/usr/src/test/zfs-tests/include/commands.cfg
index c9097f0fc2..3b21caafb6 100644
--- a/usr/src/test/zfs-tests/include/commands.cfg
+++ b/usr/src/test/zfs-tests/include/commands.cfg
@@ -76,10 +76,10 @@ export USR_BIN_FILES='awk
od
pack
pagesize
+ passwd
pax
pfexec
pgrep
- pkginfo
pkill
ppriv
print
diff --git a/usr/src/test/zfs-tests/include/libtest.shlib b/usr/src/test/zfs-tests/include/libtest.shlib
index 61c4f97d70..6e7f5210a1 100644
--- a/usr/src/test/zfs-tests/include/libtest.shlib
+++ b/usr/src/test/zfs-tests/include/libtest.shlib
@@ -1869,6 +1869,7 @@ function add_user #<group_name> <user_name> <basedir>
fi
log_must useradd -g $gname -d $basedir/$uname -m $uname
+ log_must passwd -N $uname
return 0
}
diff --git a/usr/src/test/zfs-tests/tests/functional/delegate/zfs_allow_001_pos.ksh b/usr/src/test/zfs-tests/tests/functional/delegate/zfs_allow_001_pos.ksh
index 23db028b25..9d69d84124 100644
--- a/usr/src/test/zfs-tests/tests/functional/delegate/zfs_allow_001_pos.ksh
+++ b/usr/src/test/zfs-tests/tests/functional/delegate/zfs_allow_001_pos.ksh
@@ -68,6 +68,7 @@ log_note "Create a user called 'everyone'."
if ! id everyone > /dev/null 2>&1; then
user_added="TRUE"
log_must useradd everyone
+ log_must passwd -N everyone
fi
for dtst in $DATASETS ; do
log_must zfs allow everyone $perms $dtst
diff --git a/usr/src/test/zfs-tests/tests/functional/privilege/setup.ksh b/usr/src/test/zfs-tests/tests/functional/privilege/setup.ksh
index 3c946d21f2..aa5f0aeb73 100644
--- a/usr/src/test/zfs-tests/tests/functional/privilege/setup.ksh
+++ b/usr/src/test/zfs-tests/tests/functional/privilege/setup.ksh
@@ -60,6 +60,7 @@ done
log_must mkdir -p /export/home/$ZFS_USER
log_must useradd -c "ZFS Privileges Test User" -d /export/home/$ZFS_USER $ZFS_USER
+log_must passwd -N $ZFS_USER
echo $ZFS_USER > /tmp/zfs-privs-test-user.txt
echo $USES_NIS > /tmp/zfs-privs-test-nis.txt