Skip to content

Commit

Permalink
9635 we should enable user after creation with zfs tests
Browse files Browse the repository at this point in the history
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Approved by: Joshua M. Clulow <josh@sysmgr.org>
  • Loading branch information
ikozhukhov authored and Prakash Surya committed Sep 17, 2018
1 parent 002c14a commit 09b2abb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion usr/src/test/zfs-tests/include/commands.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ export USR_BIN_FILES='awk
od
pack
pagesize
passwd
pax
pfexec
pgrep
pkginfo
pkill
ppriv
print
Expand Down
1 change: 1 addition & 0 deletions usr/src/test/zfs-tests/include/libtest.shlib
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09b2abb

Please sign in to comment.