Skip to content
Snippets Groups Projects
Commit 02761860 authored by Dirk Sarpe's avatar Dirk Sarpe
Browse files

set acl for monitoring user to allow disk check

parent e0aed337
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# script creates home directories for users in rgroup if those do not exist
# and sets acl to allow monitoring user disk usage check
set -e
......@@ -7,6 +8,7 @@ rgroup="g_linuxusers"
home="/homes/"
umask=0077
skel="/etc/skel"
monitoringuser="monitoring"
if [ ! -d $home ]
then
......@@ -20,5 +22,6 @@ for ruser in "${ruserar[@]}"
if [ ! -d $home$ruser ]
then
mkhomedir_helper $ruser $umask $skel
setfacl -m u:${monitoringuser}:rx $home$ruser
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment