r/archlinux • • 19h 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?

1 Upvotes

12 comments sorted by

12

u/JohnSane 19h ago

Print it and put it into an underwater vault.

3

u/Interesting_Shoe3959 19h ago

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

12

u/cinaed666 19h ago

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

5

u/anxious_and_stupid 19h ago edited 19h 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

0

u/Interesting_Shoe3959 19h ago edited 19h ago

Alr, thanks

3

u/anxious_and_stupid 19h 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.

2

u/archover 9h ago edited 9h ago

No passwords required to totally destroy the entire install. Physical security matters. Good day.

4

u/dumbasPL 18h ago edited 18h 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] 17h ago

[deleted] — view deleted comment

2

u/AppointmentNearby161 17h ago

The root password is the password for the root user and not the password for the unprivileged user. A user can switch users, typically to root, with either su, by using the target users password, or sudo, by using their password.

1

u/Illustrious-Gur8335 17h ago

Ah yes mixed up su and sudo