How to configure passwordless Unix login.

book

Article ID: 167768

calendar_today

Updated On:

Products

XOS

Issue/Introduction

Steps to bypass password requirement when accessing the UNIX shell.Q. Is it possible to bypass the password prompt when performing "unix su" with admin level  accounts?
Below is the workaround to bypass the password requirement when logging in to the UNIX shell. Please ensure that peforming this task is in compliance with your corporate policy.




Resolution

Workaround

On the Secondary CPM:

1) cp /etc/shadow to /etc/shadow.orig
2) chmod +w  /etc/shadow
3) vi  /etc/shadow
Locate the "root" account line and remove the password string beginning with the "$" sign as seen in example below:
Password string for root account is
"$6$ZpaIs3gh$M1duAdQPva8hd8hfUNmcnxUqaG3nx.fD3RAUs/r70w7rxooe.UjJFsGfFOULvMWlQjDUacNhPV7eLBzaJTYjI1" as seen in the example below:

Change the line for "root" account from:

root:$6$ZpaIs3gh$M1duAdQPva8hd8hfUNmcnxUqaG3nx.fD3RAUs/r70w7rxooe.UjJFsGfFOULvMWlQjDUacNhPV7eLBzaJTYjI1:14691:0:99999:7:::
To:
root::14691:0:99999:7:::

4) Save and exit
5) Open another ssh window, log in to the admin account, and type "unix su"  and verify that a password is not required.
6) Test all other accounts besides admin to ensure they can login and access the CLI and the UNIX shell.

7) chmod -w  /etc/shadow

On the primary CPM:
8) Repeat steps 1-7 above