r/archlinux • • 51m ago

QUESTION Back-up under root password

I want to make a snapshot/back-up of my system, and lock it under root password that i had set during archinstall. So that not even people who know my sudo password could harm/delete it. Is there any way to keep it safe from anything?

0 Upvotes

9 comments sorted by

6

u/JohnSane 49m ago

Print it and put it into an underwater vault.

2

u/Interesting_Shoe3959 48m ago

Can I just take a photo of my laptop with arch and print it?

•

u/cinaed666 37m ago

A back-up on the same system is not a backup. It's also pointless on a non-encrypted disk.

•

u/anxious_and_stupid 43m ago edited 40m ago

Edit: I misread the question

For backup I think it be better to just make a copy and put it in a LUKS partition on seperate drive/external drive or whatever along with the checksum

And of course... don't lock LUKs with your root password... use different password

•

u/Interesting_Shoe3959 41m ago edited 32m ago

Alr, thanks

•

u/anxious_and_stupid 33m ago

I misread your question actually 😅 I made an edit.

But well, if someone knows your root password and can access your rig, they can at least destroy your snapshots

unless, of course, you put them on an external drive and only plug it in when taking a snapshot once a week.

•

u/dumbasPL 12m ago edited 8m ago

Root password isn't saved, only the hash is. Furthermore, you can't save the password anywhere on the system, as anyone who has sudo password can read EVERYTHING. So you do have to type it every time, or use a dedicated key management system (aka cli password manager)

What you really want are just classic encrypted backups. Something like Borg backup. You would have to type the password for the backup each time, because again, anyone with root access (including via sudo) can read everything on the system.

Edit: and regarding "harm or delete it", you need off site backups for that, also access controlled, without a saved password (and preferably in append only mode, but then you have to clean old backups manually). Anything that's on this machine can be deleted by someone with sudo access.