[F] Fix .gnupg owner

This commit is contained in:
Simon Rieger 2022-10-26 00:39:39 +02:00
parent c0ff877d1e
commit 436ebd605a

View file

@ -176,6 +176,7 @@ function userrechte() {
#gnupg #gnupg
mkdir -p /home/"$user"/.gnupg mkdir -p /home/"$user"/.gnupg
chmod -R 700 /home/"$user"/.gnupg chmod -R 700 /home/"$user"/.gnupg
chown -cRv "$user":users /home/${user}/.gnupg
if [ -f /home/${user}/.gnupg/* ]; then if [ -f /home/${user}/.gnupg/* ]; then
chmod -v 600 /home/${user}/.gnupg/* chmod -v 600 /home/${user}/.gnupg/*
fi fi