Adding new User - PW unknown

  • Hi,


    quick descrition of my problem.


    root shell password is not longer recognized.I haven´t changed this. Add a new User via OMV Admin. The PW form the new User not recognized in shell also.What´s going on?

    • Offizieller Beitrag

    Few things it could be.


    1. Make sure your SSH plugin is enabled


    2. Check your SSH settings and make sure you have "root login enabled" (personally I think this is a terrible idea).


    Assuming the above is correct and you still can't SSH as root, but you have webUI access. The easy way to solve this is...


    Create a user in the webUI, and make sure they are in the ssh and sudo group. You should then be able to SSH as that user (you may have to restart the SSH plugin). SSH the server as that user, then use that users sudo powers to change the root password (sudo passwd root).


    I'm not a fan of sudo or enabling root SSH access... but using them temporarily in this situation will work fine. Far better to SSH as a non sudo user, then use the su command to log in as root. If your system user was compromised and someone gained SSH access to your NAS, they would then have to figure out your root password to do any real damage. If the user has sudo powers, then all they'd have to do is change the root password as I showed you above.

  • thx KM0201. PW changed.


    I had created a new user, but forgot to add to ssh group. My Nas can not be accessed from outside, hopefully. And i use Biktwarden for Passwords.
    Error occured 2 days after i installed cockpit.

  • Just fyi, you dont need to restart ssh, it uses pam anyways.
    In my opinion permitRootLogin is only a good idea, if there server is only reachable from intranet, and there is no iot crap in it. Or you got some port knocking protection.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!