Skip to main content

๐Ÿ”“ Enabling Root Login in Debian Control Panel (Debian 12 and 13)

โœ… Steps to Enable Root Login

  1. Edit the disallowed-users file
    Open the file with a text editor using root privileges:
sudo nano /etc/cockpit/disallowed-users
  1. Remove or comment out the root line
    If you see a line that contains only:
root

comment out that line:

# root
  1. Save the changes
  • In Nano, press Ctrl+X, then Y, then Enter to save and exit.
  1. 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 with sudo privileges 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.


Was this article helpful?

More in Debian OS

Not finding what you are looking for?

Chat with us or send us an email. Chat is open 24/7 through the bubble at the bottom right.

Send us an email