Is there a way to give the root user a temporary password? That is, after a certain time, or after it is manually deactivated, the password will be deleted.
I want to give my colleague permission to access a server as root for a certain amount of time (like a day) so he can use
ssh email@example.com. After that, the password I give him will expire, and attempts to use it to log in will be rejected.
Is there a way to do this?