๐ Enabling Root Login in Debian Control Panel (Debian 12 and 13)
โ Steps to Enable Root Login
- Edit the disallowed-users file
Open the file with a text editor using root privileges:
sudo nano /etc/cockpit/disallowed-users
- Remove or comment out the
rootline
If you see a line that contains only:
root
comment out that line:
# root
- Save the changes
- In Nano, press
Ctrl+X, thenY, thenEnterto save and exit.
- Restart the Cockpit service
For the changes to take effect, restart Cockpit:
sudo systemctl restart cockpit
(Rebooting the system is optional but not typically necessary.)
โ ๏ธ Important Considerations
-
๐ Security Risks
Enabling root login increases the attack surface. It's safer to use a non-root user withsudoprivileges for daily tasks. -
๐ Alternative Authentication
Consider implementing Kerberos, SSH keys, or certificates for more secure authentication. -
๐งฑ Firewall Access
Make sure your firewall allows traffic on TCP port 9090, which Cockpit uses. -
๐ค Managing Other Users
You can restrict additional users by adding their usernames (one per line) to/etc/cockpit/disallowed-users.