[F] Fix .gnupg owner
This commit is contained in:
parent
c0ff877d1e
commit
436ebd605a
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue