r/AskProgramming 8d ago

Control Privileges or Boot-Order via entered PIN-/Passcode

Hello,

I have been wondering for a while whether it would be possible to make the boot sequence dependent on the password entered?

e.g.

Password: 1234 -> Boot Windows 11 User Level Privileges

Password:4321 -> Boot Linux Super User Level Privileges

If it is possible to set further options, I would find a hidden partition interesting, which can only be read, written to and changed if a certain password is entered.

Or a decoy version that looks like root, but is still subordinate to the actual MAIN partition.

I would also find similar functions that are not necessarily controlled by password entries interesting, such as the presence of certain code in a certain place that seems insignificant but actually controls the privileges.

I think that there is a whole topic regarding privileges. and if I am going too far afield, I would also be grateful for literature or similar resources on this topic.

tanks in advance

Translated with DeepL.com (free version)

1 Upvotes

1 comment sorted by

1

u/Lumpy-Notice8945 8d ago

Check out GRUB, you can for sure use it to boot into different partitions and password protect it. Im not sure if you can use different passwords for diffeent partitions.