lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 55bde44 1/3: Validate multi-user-ness more th


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 55bde44 1/3: Validate multi-user-ness more thoroughly
Date: Thu, 14 May 2020 16:26:28 -0400 (EDT)

branch: master
commit 55bde44586f025fcb90a58bed3e17f6133406c60
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Validate multi-user-ness more thoroughly
---
 install_msw.sh | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/install_msw.sh b/install_msw.sh
index 599a2cb..fc71ab9 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -289,8 +289,23 @@ do
     fi
 done
 
+# GID should be the same for all files.
+find /opt/lmi/ \! -group "$(id -gn "$(logname)")" -print
 # User and group write permissions should be the same.
-find /opt/lmi -perm -200 \! -perm -020 -print0 | xargs -0 ls -ld
+find /opt/lmi -perm -200 \! -perm -020 -print0 | xargs --no-run-if-empty -0 ls 
-ld
+# Show all distinct file modes. Expect something like:
+#   00444 regular file
+#   00555 regular file
+#   00664 regular empty file
+#   00664 regular file
+#   00775 regular empty file
+#   00775 regular file
+#   00777 symbolic link
+#   02775 directory
+# User and group permissions differ (multi-user-ness is impaired)
+# if the digits in the fourth and fifth columns differ. The second
+# column should contain '2' for all directories.
+find /opt/lmi/ -print0 | xargs -0 stat -c "%05a %F" | sort -u
 
 mkdir --parents /opt/lmi/data
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]