Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Root user password resets after reboot


    I have a seagate central nas. The root user has no password, so I set one and it works. But when I reboot the system it dissappears, no password needed to log into root user account. Do I have to save settings or something?

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Virginia, USA
    It's possible that the root file system is being mounted read only. Try remounting as rw. mount -o remount,rw /

  3. #3
    Thank you for the tip but it did not help... Any other suggestion? I think the system kinda resets after each reboot or something..

  4. $spacer_open
  5. #4
    Just Joined! dcote's Avatar
    Join Date
    Mar 2015
    Ottawa, Ontario, Canada

    Lightbulb How to preserve root password across restarts

    This worked for me. I have firmware version 2014.0410.0026-F.
    1. Run 'su -' to access the root account.
    2. Put an 'x' in the password field for the root account in the /etc/password file.
    3. Run 'passwd' to set a password for the root account.
    4. Run this command:
      grep root /etc/shadow >> /usr/config/backupconfig/etc/shadow
    5. Put an 'x' in the password field for the root account in the file /usr/config/backupconfig/etc/passwd.
    6. Restart the NAS by running the command 'reboot'.

    Note that I just figured this out. I have no idea of the impact of setting a root password on the machine. I'll post replies if I notice anything. Please do the same.
    Last edited by dcote; 03-24-2015 at 03:45 AM. Reason: Added caveat and title

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts