cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
291
Views
1
Helpful
6
Replies

CMX Admin SSH lockout

Chris40
Level 1
Level 1

Hello,

We recently migrated to the VM version of CMX and ran into an issue with the admin account an logging into SSH.  It looks like after 35+ days of user inactivity SSH access is being denied.  We can unlock the account with console access but its a pain as we dont manage the servers they live on.  What security policy needs to be changed to extend or disable the SSH lockout for the admin account.  On cmx version 10.6.3-146

6 Replies 6

Mark Elsen
Hall of Fame
Hall of Fame

 

  - @Chris40                Probably a feature of the underlying Linux OS ; try in linux shell : sudo chage -I -1 admin
                                         
to disable inactivity lockout. 

  M.
   



-- Let everything happen to you  
       Beauty and terror
      Just keep going    
       No feeling is final
Reiner Maria Rilke (1899)

@Chris40 
The issue is caused by the underlying OS password aging policy which automatically locks the account after a period of inactivity, you can permanently fix this by logging in as root and running chage -I -1 cmxadmin to disable the inactivity timer

Chris40
Level 1
Level 1

Any way to run this command without root access?  Looks like a TAC case needs to be opened to generate a token. 

output for sudo chage -i -1

Sorry, user cmxadmin is not allowed to execute '/bin/chage -i -1' as root

@Chris40 

Open TAC case, its faster way

 

  - @Chris40             Sorry, user cmxadmin is not allowed to execute '/bin/chage -i -1' as root
                                 In VMware you could , mount the (root) partition of the CMX VM on another host
                                 and manually change /etc/shadow as in  : 
                                               cmxadmin:$6$...:19800:0:99999:7:30:20000:
                                               cmxadmin:$6$...:19800:0:99999:7:-1:20000:

                                The above is example content, only pay attention to changing the colored value.

 M.
                                               



-- Let everything happen to you  
       Beauty and terror
      Just keep going    
       No feeling is final
Reiner Maria Rilke (1899)
Review Cisco Networking for a $25 gift card