"Permission denied" message is displayed when accessing CLI

book

Article ID: 167775

calendar_today

Updated On:

Products

XOS

Issue/Introduction

"Permission denied" message is displayed when accessing CLI
When accessing Unix shell from CLI, a similar message to the example is displayed. User is not able to login.
 
CBS# unix su 
Password: 
su: /bin: Permission denied 
CBS# 

Cause

This problem might occur when the /etc/passwd file was altered and reference to Unix shell binary for a particular user (root user in most cases) is missing in that file.

Resolution

If this problem happens, it is necessary to reload CPM to the single mode and then edit the /etc/passwd file. The line with user root must include the shell command with full path: /bin/bash
 
For example the entry for user root should appear like this:
root:x:0:0:root:/root:/bin/bash
 
Please refer the article in the section bellow for more details how to reload CPM to single mode.