WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Doesn't restore passwd and shadow file after backup  (Read 11788 times)

Offline apuboard

  • Newbie
  • *
  • Posts: 30
Doesn't restore passwd and shadow file after backup
« on: January 07, 2016, 08:04:18 AM »
I was trying to change my password for the user tc, I also made a backup with
Code: [Select]
filetool.sh -b and I added /etc/shadow and /etc/passwd to .filetool.lst. After I reboot, the new password is lost and there's the same passwd and shadow config like I had before. Do I need other files to backup or could it be a problem with the filetool?
« Last Edit: January 07, 2016, 08:20:39 AM by apuboard »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Doesn't restore passwd and shadow file after backup
« Reply #1 on: January 07, 2016, 08:29:28 AM »
Which version and architecture are you referring to?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline apuboard

  • Newbie
  • *
  • Posts: 30
Re: Doesn't restore passwd and shadow file after backup
« Reply #2 on: January 07, 2016, 08:35:14 AM »
I'm using the kernel version: 3.16.6-tinycore or did you ask for the version of filetool?
However, if I run a dry backup the  two files are listed.
« Last Edit: January 07, 2016, 08:38:27 AM by apuboard »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11627
Re: Doesn't restore passwd and shadow file after backup
« Reply #3 on: January 07, 2016, 09:40:41 AM »
Hi apuboard
Bmarkus wants to know what do you get if you enter:
Code: [Select]
versionand is this for ARM, X86, x86_64.

Offline apuboard

  • Newbie
  • *
  • Posts: 30
Re: Doesn't restore passwd and shadow file after backup
« Reply #4 on: January 07, 2016, 09:48:20 AM »
So it turned out that I wasn't allowed to backup the shadow file, so I just wrote my hashes inside my passwd file. Not the best solution, but works for me. :D

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Doesn't restore passwd and shadow file after backup
« Reply #5 on: January 15, 2016, 09:04:15 AM »
You have not answered the questions asked.
You should have no problem backing up "etc/passwd" and etc/shadow".
Just make sure to omit the leading "/" on file names.