Binaries/mask

From Minux Wiki
Jump to navigation Jump to search

the mask binary is parth of the "auth-client" package and is used to temporary change your user, or "mask" yourself as someone else, it stores your real username and returns your old login without have to enter the password by unmasking again.

this still requires you to enter the target user's password and that the target user has access to the computer you are on, otherwise you get access denied and no changes happen.


primary reason is to test other user's permissions on a device or switch users for a short period.


usage:

mask username password


output:

tries to mask as the target user untill unmasked.

if username argument is replaced with "remove" it will remove the mask in stead.


eg: "mask foo bar" will switch to the user foo with password bar,

"mask remove" will remove the mask again and return the system to the previous user.