login into another username without password

Sometime we need to use console command and login into another user name so we can do network administration stuff. Let’s say that we’re going to accessing server with serverme username.
We open console and login into root privilege first,
Then creating the username
$useradd serverme
This time we do not supply for password.
Then login into it
$login serverme
Slackware will ask for password, the thing we didn’t do before.
There’s another command to by pass it, like this
$login -f username
It doesn’t matter we supply the username with password or not, login -f will directly log us in into that username. But remember do it all in root privilege.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.