From 40fb98b7b84c3d97eeae26a91cf215c3deac1ce3 Mon Sep 17 00:00:00 2001 From: kremlin Date: Fri, 10 Feb 2017 22:41:32 -0600 Subject: [PATCH] add system source directory permission setting script --- misc/perms.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 misc/perms.sh diff --git a/misc/perms.sh b/misc/perms.sh new file mode 100755 index 0000000..db63db2 --- /dev/null +++ b/misc/perms.sh @@ -0,0 +1,17 @@ +#!/bin/ksh + +EUID=`id -g` +if [[ $EUID -ne 0 ]]; then + echo "run me as root!" + exit 1 +elif [[ ${#} -ne 2 ]]; then + echo "SYNTAX: perms.sh " + exit 2 +fi + +set -e +chgrp -G wsrc $1 +chmod -R g+rwx /usr/src + +echo "permissions set -- relogin" + -- 2.41.0