Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Magnus-Holmberg
Advisor
Jump to solution

How to change shell to bash

Hi Guys,

Here is a short video on how to change shell to bash.

Regards
Magnus

https://www.youtube.com/c/MagnusHolmberg-NetSec
(1)
1 Solution

Accepted Solutions
obsidian11
Contributor

I had locally managed SMB appliance and that didn't changed nothing. When I tried typing egrep <username> /etc/passwd it still showed that my default shell is /bin/clish.

Instead of that I've tried this (R81.10):

1. Log in to expert mode with desired user (that needs bash shell).

2. Type bashUser on

 

I hope this will help someone.

View solution in original post

7 Replies
Will_H
Contributor

set user admin shell /bin/bash

DONE.

(1)
obsidian11
Contributor

I had locally managed SMB appliance and that didn't changed nothing. When I tried typing egrep <username> /etc/passwd it still showed that my default shell is /bin/clish.

Instead of that I've tried this (R81.10):

1. Log in to expert mode with desired user (that needs bash shell).

2. Type bashUser on

 

I hope this will help someone.

PhoneBoy
Admin
Admin

Yes, the procedure on Quantum Spark appliances is different.

DiegoFretes
Participant

[Expert@fw]# bashUser on
user: admin

Bash login enabled.
Scp access enabled.

 

[Expert@fw]# bashUser off
user: admin

Bash login disabled.
Scp access disabled.
Cpshell enabled.

Jon_Crotteau
Participant

How many ways to: change user's shell

  1. clish command:
    set user USERNAME shell /bin/bash

  2. Bash command:
    chsh --shell /bin/bash USERNAME

  3. usermod utility:
    usermod --shell /bin/bash USERNAME

  4. /etc/passwd file directly:
    (nano or vi) /etc/passwd
Bob_Zimmerman
Authority
Authority

2, 3, and 4 are likely to be overwritten when you make other changes in clish. I can't stand clish, so this irritates me deeply.

0 Kudos
DiegoFretes
Participant

Quantum Spark procedure

[Expert@fw]# bashUser on
user: admin

Bash login enabled.
Scp access enabled.

 

[Expert@fw]# bashUser off
user: admin

Bash login disabled.
Scp access disabled.
Cpshell enabled.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events