This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CLI Commands to change the Loginuser and root account DO NOT WORK

I do have CLI access, and due to exteriencing this repeatedly in the past, was testing this on a brand new VM build to prove I'm not just crazy. This SERIOUSLY looks like bad documentation or a bug.

In any event, the guide from here: https://community.sophos.com/kb/en-us/115346 under the section titled "All password reset procedure" says that to change the loginuser and root passwords in CLI, use these commands:

  1. Type: passwd loginuser
  2. Enter and re-enter a new password for the loginuser account.
  3. Type: passwd root
  4. Enter and re-enter a new password for the root account.

When I do this, it says it changed the passwords successfully for each account, however I cannot login to SSH ever again and have to restore from backup or change the passwords from the GUI. I have done this repeatedly, with different passwords, and even copied and pasted my passwords to ensure they are correct, and even done it on Various versions from 9.2 to 9.3 and 9.4 and 9.5! IT NEVER WORKS!

 

This has been an issue since at least the 9.2 days and I have to say I'm tired of non-existent and/or poor CLI documentation and bad, untested guides for Sophos products.

 

Thank you,

Travis Grenell

Certified Sophos UTM Architect



This thread was automatically locked due to age.
Parents
  • I've not tried those commands, Travis.  To reset admin, loginuser and root in one command, I use:

    cc system_password_reset

    As I said in your other thread, to set the admin password to AbCd1!2$3#4 at the command line:

    cc passwd AbCd1!2$3#4

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • I've not tried those commands, Travis.  To reset admin, loginuser and root in one command, I use:

    cc system_password_reset

    As I said in your other thread, to set the admin password to AbCd1!2$3#4 at the command line:

    cc passwd AbCd1!2$3#4

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
  • Bob,

     

    cc system_password_reset does not allow you to set any password but the default admin account. Since I now know I deleted the admin account, this is useless to me. 

     

    Also, it does not allow the changing of loginuser and root passwords. Those passwords do get reset, but nothing tells you what they are reset to! Also, the document below says that the method I posed in my original post is the proper way to set those passwords, so it is wrong: https://community.sophos.com/kb/en-us/115346 

     

    Thanks!

    Thank you,
    Travis Grenell
    Certified Sophos UTM Architect

  • system_password_reset leaves loginuser and root with blank passwords.  When you logout and next try to login as root at the console, you'll be asked to assign a new password.

    There might be times when the password reset suggested by the document will work, but I haven't experienced that either.  Today was the first I tried that.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA