diff --git a/.gitignore b/.gitignore index 8910e36..e2fa8e9 100644 --- a/.gitignore +++ b/.gitignore @@ -246,3 +246,4 @@ /cockpit-277.tar.xz /cockpit-278.tar.xz /cockpit-279.tar.xz +/cockpit-280.tar.xz diff --git a/cockpit.spec b/cockpit.spec index 6629848..98fdcf0 100644 --- a/cockpit.spec +++ b/cockpit.spec @@ -49,7 +49,7 @@ Summary: Web Console for Linux servers License: LGPLv2+ URL: https://cockpit-project.org/ -Version: 279 +Version: 280 Release: 1%{?dist} Source0: https://github.com/cockpit-project/cockpit/releases/download/%{version}/cockpit-%{version}.tar.xz @@ -429,6 +429,7 @@ authentication via sssd/FreeIPA. # created in %post, so that users can rm the files %ghost %{_sysconfdir}/issue.d/cockpit.issue %ghost %{_sysconfdir}/motd.d/cockpit +%ghost %attr(0644, root, root) %{_sysconfdir}/cockpit/disallowed-users %dir %{_datadir}/cockpit/motd %{_datadir}/cockpit/motd/update-motd %{_datadir}/cockpit/motd/inactive.motd @@ -477,10 +478,13 @@ if [ -x %{_sbindir}/selinuxenabled ]; then fi # set up dynamic motd/issue symlinks on first-time install; don't bring them back on upgrades if admin removed them +# disable root login on first-time install; so existing installations aren't changed if [ "$1" = 1 ]; then mkdir -p /etc/motd.d /etc/issue.d ln -s ../../run/cockpit/motd /etc/motd.d/cockpit ln -s ../../run/cockpit/motd /etc/issue.d/cockpit.issue + printf "# List of users which are not allowed to login to Cockpit\nroot\n" > /etc/cockpit/disallowed-users + chmod 644 /etc/cockpit/disallowed-users fi %tmpfiles_create cockpit-tempfiles.conf @@ -660,6 +664,10 @@ via PackageKit. # The changelog is automatically generated and merged %changelog +* Wed Nov 16 2022 Packit - 280-1 +- tools: Disallow root login by default + + * Mon Nov 07 2022 Packit - 279-1 - Dark theme support diff --git a/sources b/sources index 9c5bc10..787ef82 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cockpit-279.tar.xz) = 76788142d836ec6fadebe122da4b5fc6a5c41c99b5b66c84573488e7581edb313a947d6c6b20d6f858075c6c716f3c5f7b6874e2405844231c6c5ac60043d270 +SHA512 (cockpit-280.tar.xz) = 1f766c047bbc693465716919d93e6bdf4139cb99119b51df9132633b3f41e460ef2e29d9349fdb2caa96a27d90f0717901fffb1228564cd37068ed8365793384