Test default ACLs with particular umasks instead of

relying on a default umask.
Updated for pv#820248.
This commit is contained in:
Tim Shimmin
2001-04-17 05:16:51 +00:00
parent ae9a37dbb5
commit ef15cbdb8b
2 changed files with 16 additions and 1 deletions
+14 -1
View File
@@ -259,15 +259,28 @@ chacl -l file1 | _acl_filter_id
echo "" echo ""
echo "=== Test Default ACLs ===" echo "=== Test Default ACLs ==="
# make test clearer by testing with and without umask
umask 0
mkdir acldir mkdir acldir
chacl -b "u::rwx,g::rwx,o::rwx" "u::r-x,g::r--,o::---" acldir 2>&1 chacl -b "u::rwx,g::rwx,o::rwx" "u::r-x,g::r--,o::---" acldir 2>&1
chacl -l acldir | _acl_filter_id chacl -l acldir | _acl_filter_id
cd acldir cd acldir
touch file2 touch file2
_acl_ls file2 _acl_ls file2
chacl -l file2 | _acl_filter_id chacl -l file2 | _acl_filter_id
#ensure that umask is not having an effect
#so set it and see
umask 722
touch file3
_acl_ls file3
chacl -l file3 | _acl_filter_id
cd .. cd ..
umask 022
#------------------------------------------------------- #-------------------------------------------------------
+2
View File
@@ -93,6 +93,8 @@ file1 [o::---,g::---,u::---]
acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---] acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
-r--r----- 0 0 file2 -r--r----- 0 0 file2
file2 [u::r--,g::r--,o::---] file2 [u::r--,g::r--,o::---]
-r--r----- 0 0 file3
file3 [u::r--,g::r--,o::---]
=== Removing ACLs === === Removing ACLs ===
file1 [o::---,g::---,u::---] file1 [o::---,g::---,u::---]