Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8308025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:40:29+00:00 2026-06-08T18:40:29+00:00

I am running slitaz distro, and would like to completely remove the root password.

  • 0

I am running slitaz distro, and would like to completely remove the root password. I have tried giving a blank password to the passwd command, however that did not seem to do the trick. It gave me an error password was too short, ans it still asked me for a password when I ssh-ed in. The password was just hiting the “Enter” key.

UPDATE:
Perhaps it has to do with the fact that slitaz uses dropbear for ssh? Because even with a blank password for root in /etc/shadow, it still prompts for a password.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:40:31+00:00Added an answer on June 8, 2026 at 6:40 pm

    ● Do you really want to allow logins without a password? If so, try passwd -d root (see warnings below)

    ● Do you really want to have an empty password? echo root: | chpasswd or, if that is rejected, echo "root:$(mkpasswd -s </dev/null)" | chpasswd -e (see warnings below)

    ● For those coming here in search of a way to block password login for root, you have options:

    1. passwd -l root disables (locks), passwd -u root re-enables (unlocks) the root password.
    2. sshd option PasswordAuthentication no disables password authentification for all users (via ssh)
    3. sshd option PermitRootLogin no disables root login (via ssh)
    4. sshd option PermitRootLogin prohibit-password disables root login with password (via ssh)

    Notes and warnings:

    • ⚠️ Make sure you have a way to log in even if you accidentally lock your password. For example, a second user with full sudo access. (If you try to configure no / an insecure password, your system might actually lock you out.)
    • passwd -d root can allow for root login without password!
    • ⚠️ this is a terrible idea on systems connected to the internet. Don’t do it except in an isolated host or network. An empty password is arguably worse.
    • that’s why your system setup might still disallow logins without password (or with empty password) if you remove the password (or set it to the empty string). Especially via SSH.
    • SSH with public keys, and something ssh-agent is the way to go if you want the convenience of not repeatedly entering your password
    • SSH with public keys, and an unencrypted private key is the way to go if you want to run commands from remote scripts. There is a PermitRootLogin forced-commands-only sshd option; when set the remote script can only trigger specific commands that you need to configure on the server.

    Usually, passwords are usually saved in salted&hashed form in /etc/shadow. For more information, read the manpage with man shadow 5.
    Authentication can be blocked in the configuration of the SSH server (see man sshd_config) or in the OS’s authentification system (see "PAM" – Linux Pluggable Authentication Modules).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Running on Windows I have a repository for a project, I would now like
Running tomcat, i have this folder hierarchy: - manager/ - ROOT/ - doc -
Running IIS5 (yes, really). I'd like to remove the eTag http header that IIS
Running SQL Server 2008 (not R2). I have a few reports that have URLs
Running rails 3.2.3 with guard/spork/rspec/factory_girl and have the following in my spec helper: Spork.prefork
Running IIS 6 with a main website using .net 4. I have many sub
Running zookeeper 3.3.3. I have a znode that I am just trying to list,
Running Python, I have an image and some data calculated for different ROIs (regions
- Running PHP 5.3.8 on Linux- To start, we have solved this issue to
Running a ServiceHost with a single contract is working fine like this: servicehost =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.