Quantcast
Channel: Is there a way to perform a full login as another user without being root? - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 3

Is there a way to perform a full login as another user without being root?

$
0
0

In our setup, we are forced to use Microsoft Active Directory (AD) for ssh access to our Linux VM, so that when employees leave they can be blocked from accessing the VM once their AD account is deactivated.

We already have all our data and users set up. So my proposed plan is to:

  1. Disable all remote / ssh access to the original user accounts, only allowing access via their new AD accounts.

  2. Upon ssh'ing in to their AD account, they are automatically logged in to their original user account.

I need logname to print out the original user account (i.e. the account they get auto-logged into) and not the new AD account.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles



Latest Images