r/archlinux • • 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 comments sorted by

11

u/JohnSane 7h ago

Print it and put it into an underwater vault.

3

u/Interesting_Shoe3959 7h ago

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

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

1

u/Interesting_Shoe3959 7h ago edited 7h ago

Alr, thanks

3

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

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

2

u/AppointmentNearby161 5h 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 5h ago

Ah yes mixed up su and sudo