Password change
#6
(01-22-2020, 07:14 AM)Arwen Wrote:
(01-22-2020, 05:47 AM)FeMike Wrote: ...
I'll change the passwd file like you mentioned. Is copying the original file first and renaming it something else a suitable back up? Sorry if that sounds dumb as I'm still learning.
...
Yes, simply copying the file is a decent backup.
It's not dumb to ask for advice on something un-familiar.

For me, I like to use something like this, (adding hours & minutes if I need to have multiple backups in one day);
Code:
cp -p /etc/passwd /etc/passwd.`date +%Y%m%d`
chmod a-w /etc/passwd.`date +%Y%m%d`
This way, I preserve the last modification time of the file, (what you when you use "ls -l /etc/passwd"). And you specify when you made the backup. Plus, if you try to write over the file, you should be prompted that the file is R/O. So harder to make a mistake. Last, I put the date numbers in most significant order to self-sort on a normal file listing.

Thank you. This forum seems more forgiving than over at XDA. Over there everyone has something critical to say for beginners.

Edit: I don't see a search feature to search through all the threads besides using ctrl f, but that only looks for keywords on the current page. Is there a way to search the entire forum instead of opening 20 pages and going through the list?


Messages In This Thread
Password change - by RedHaoredOmen - 01-21-2020, 09:35 PM
RE: Password change - by mainer - 01-21-2020, 11:33 PM
RE: Password change - by FeMike - 01-22-2020, 05:47 AM
RE: Password change - by Arwen - 01-22-2020, 07:14 AM
RE: Password change - by FeMike - 01-22-2020, 08:39 AM
RE: Password change - by dsk70 - 02-29-2020, 10:56 PM
RE: Password change - by mainer - 03-01-2020, 12:27 PM
RE: Password change - by FeMike - 01-21-2020, 11:38 PM
RE: Password change - by martinayotte - 01-22-2020, 08:46 AM
RE: Password change - by FeMike - 01-22-2020, 10:58 AM
RE: Password change - by martinayotte - 01-22-2020, 01:58 PM
RE: Password change - by mainer - 01-22-2020, 09:27 AM
RE: Password change - by Arwen - 01-22-2020, 03:26 PM
RE: Password change - by FeMike - 01-22-2020, 03:51 PM
RE: Password change - by martinayotte - 01-22-2020, 03:41 PM
RE: Password change - by Arwen - 01-22-2020, 03:50 PM
RE: Password change - by Arwen - 01-22-2020, 03:59 PM
RE: Password change - by FeMike - 01-22-2020, 06:43 PM
RE: Password change - by Arwen - 01-23-2020, 05:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  oem password iwm 8 2,552 02-19-2023, 07:35 PM
Last Post: iwm
  Graphical login hanging after password entry mhill8 2 3,433 03-29-2021, 08:32 AM
Last Post: jacksonliam341
  Forgot my Pinebook password. Booting from MIcroSD doesn't work. ksfoodforest 0 1,789 01-30-2021, 11:08 AM
Last Post: ksfoodforest
  MAC address change user0258 2 3,553 09-16-2020, 01:12 PM
Last Post: user0258
  [split] Change password from external media James Good 11 13,084 07-23-2020, 02:42 PM
Last Post: wdt
  Change Language xmark 1 3,110 06-08-2020, 12:56 PM
Last Post: tophneal
  PBP Complete Loss of Password Recognition jcj52436999 2 3,483 03-16-2020, 05:38 PM
Last Post: jcj52436999
  Default user name and password? CryptoRick 2 7,446 02-14-2020, 02:24 PM
Last Post: FeMike
  chromium keyring password change or remove Moon1 10 12,342 02-02-2020, 05:16 PM
Last Post: Moon1
  How to make Time change persistent FeMike 4 4,636 01-23-2020, 08:24 PM
Last Post: FeMike

Forum Jump:


Users browsing this thread: 1 Guest(s)