cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
691
Views
0
Helpful
4
Replies

Unable to login to adminshell

Hello-

 

We are running CSPCv2.7.3.1 

When I try to login to CLI using admin account, I get successfully authenticated but i get to linux prompt

"[admin@ccoll01 ~]$ " instead of adminshell enable mode. Collectorlogin account is working as well.

 

Can someone help with this?

 

Thanks

1 Accepted Solution

Accepted Solutions

It looks like someone changed the admin user's default shell to bash. You can change it back with the below command run as the root user:

 

usermod --shell /opt/cisco/ss/adminshell/bin/clishell admin

 

Please confirm if you are able to access the admin shell when this runs.

 

Thank you,

Brandon

View solution in original post

4 Replies 4

brawall
Cisco Employee
Cisco Employee

Can you please post output of below command run as the collectorlogin user:

 

getent passwd admin | cut -d: -f7

 

Thank you,

Here is the output.

 

[collectorlogin@netprtccoll01 ~]$ getent passwd admin | cut -d: -f7
/bin/bash

It looks like someone changed the admin user's default shell to bash. You can change it back with the below command run as the root user:

 

usermod --shell /opt/cisco/ss/adminshell/bin/clishell admin

 

Please confirm if you are able to access the admin shell when this runs.

 

Thank you,

Brandon

That worked. Thank you.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: