add group only if missing
This commit is contained in:
@@ -24,7 +24,9 @@ chown -R root:root /etc/ssh/
|
|||||||
chmod 0644 /etc/ssh/*
|
chmod 0644 /etc/ssh/*
|
||||||
chmod 0600 /etc/ssh/*key
|
chmod 0600 /etc/ssh/*key
|
||||||
|
|
||||||
groupadd -g 997 box
|
if ! getent group box; then
|
||||||
|
groupadd -g 997 box
|
||||||
|
fi
|
||||||
|
|
||||||
chown root:root /home
|
chown root:root /home
|
||||||
chmod 0755 /home
|
chmod 0755 /home
|
||||||
|
|||||||
Reference in New Issue
Block a user