This is like an informal version of Shamir's Secret Sharing
Re:Verelox Wiped by Ex-Admin
by rcthompson on Friday June 09, 2017 @03:57PM
(#14524002)
Maybe someone should implement a PAM module or something that requires authenticating as two different users with sudo privileges, so you can implement this for as many users as you like and let them each have a single password, instead of half of a password for each possible pair of users.
Use something with 2FA like e.g. https://duo.com/docs/duounix and give person A the password and person B the 2nd factor (phone with this Duo profile configured or whatever).
Re:Verelox Wiped by Ex-Admin
by rcthompson on Saturday June 10, 2017 @05:35PM
(#14529315)
That doesn't eliminate the need to set up an account & password for every possible pair of users, rather than just every user.
If would also have to do session sharing so both people can watch each other and see what commands they run.
What if one of the people that has part of the key gets mad and leaves without sharing it?
https://blog.threatstack.com/who-watches-the-watchmen-securi... // https://en.wikipedia.org/wiki/Quis_custodiet_ipsos_custodes%... this idea has been around for a very long time.
Re:Verelox Wiped by Ex-Admin
by livingparadox on Friday June 09, 2017 @06:20PM
(#14525039)
Then you still have two users with a complete password set, from which you can either reconstruct the third permutation or generate a new set.
That only sort of helps. Do both people also watch each other while they run commands?
Because if not, once you are admin, you can install programs that let you become admin again at will.
Re:Verelox Wiped by Ex-Admin
by benjohnson on Saturday June 10, 2017 @01:05PM
(#14528098)
Yes! We swiped the idea from the military. In certain dangerous places, they require two people to be there or nobody. One person is not allowed.
Well whoever set that up knows the whole password right?
Nope. It could be system generated and disseminated over secure channels.
Password rotation becomes necessary, and a little bit riskier, because now you have to deal with accidental lock-outs in a sane, coordinated manner.
Re:Verelox Wiped by Ex-Admin
by throwaway2048 on Friday June 09, 2017 @11:44PM
(#14526059)
and who implements the system that generates and disseminates over secure channel?
You are stuck trusting somebody, no matter what. Its turtles all the way down.
Eh, 3 pieces of a randomly generated string... hashed in memory, and only the result of the hash function is stored. Pretty basic concept.
Soon, dear throwaway, you'll be telling me we should live in fear of the locksmiths, for all their key blanks and such fiendish metal files to abrade them with. What if they should file down a butter knife into the shape of my precious bicycle chain's key?
Re:Verelox Wiped by Ex-Admin
by throwaway2048 on Saturday June 10, 2017 @02:04AM
(#14526343)
I didn't say you should be afraid, simply that trying to build a system that doesn't require you to trust people is a fools errand.
For really important accounts - we have three people who each know two thirds of the password. It requires two people to then log in and do damage.
For example if the root password was CatDogFish then
Person1: CatDog_
Person2: _DogFish
Person3: Cat_Fish
Two people can then log in and watch what the other person is doing.