shadow fix

This commit is contained in:
aliriza committed 2022-12-02 08:05:44 +00:00
1 parent e3f59f6dc1
commit ff77575a9d
1 file changed
+8
+8
View File
@@ -15,3 +15,11 @@ fi
if ! grep "^root:" /etc/group >/dev/null ; then
echo "root:x:0:root" >> /etc/group
fi
if [ ! -f /etc/shadow ] ; then
echo "root:*::0:::::" > /etc/shadow
chmod 600 /etc/shadow
chown root /etc/shadow
chgrp root /etc/shadow
fi