An error occurred while loading the file. Please try again.
-
This disables root account. Placing of this patch expects it to be caried for a long time so it was moved to second possition while current second patch was moved to thid. That makes it of same number as existing patch but that patch is going to be dropped in future so no harm to have them with same number for now.
Verified16e891a9
0002-base-files-disable-root-account.patch 891 B
From be77444967f3e4445c8653ec3788207133a45c5c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
Date: Mon, 12 Oct 2020 16:04:59 +0200
Subject: [PATCH] base-files: disable root account
In default on Turris OS configuration should be done through Foris to set
all passwords (that includes Foris as well as system one if user
chooses). This means that root login has to be disabled. This changes
default to be so.
---
package/base-files/files/etc/shadow | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/base-files/files/etc/shadow b/package/base-files/files/etc/shadow
index 4b4154f..ac3b8a2 100644
--- a/package/base-files/files/etc/shadow
+++ b/package/base-files/files/etc/shadow
@@ -1,4 +1,4 @@
-root::0:0:99999:7:::
+root:!:0:0:99999:7:::
daemon:*:0:0:99999:7:::
ftp:*:0:0:99999:7:::
network:*:0:0:99999:7:::
--
2.28.0