r/archlinux • u/Interesting_Shoe3959 • 7h 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
11
u/JohnSane 7h ago
Print it and put it into an underwater vault.
7
u/cinaed666 7h ago
A back-up on the same system is not a backup. It's also pointless on a non-encrypted disk.
3
u/anxious_and_stupid 7h ago edited 7h 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
4
u/dumbasPL 6h ago edited 6h 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.
0
u/[deleted] 5h ago
[deleted] — view deleted comment