LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2021, 06:34 PM   #1
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Rep: Reputation: Disabled
manjaro update changes my default bash prompt to user1-pc% ! how to change it back ?


After system update to 5.10.84-1-MANJARO, as usual it changes my themes and desktop photo and this time it changes shell to zsh.. i how to type bash everytime to get my old familiar bash back.

Every update is a waste of my time to change setting back.

Code:
user1-pc% chsh -l
/bin/sh
/bin/bash
/bin/zsh
/usr/bin/zsh
/usr/bin/git-shell
user1-pc% chsh -s /bin/bash    
Changing shell for manjaro-andrew.
Password: 
chsh: Shell not changed.
user1-pc%

Last edited by andrewysk; 12-21-2021 at 06:58 AM.
 
Old 12-20-2021, 07:09 PM   #2
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by andrewysk View Post
After system update to 5.10.84-1-MANJARO, as usual it changes my themes and desktop photo and this time it changes shell to zsh.. i how to type bash everytime to get my old familiar bash back.

Every update is a waste of my time to change setting back.

Code:
user1-pc% chsh -l
/bin/sh
/bin/bash
/bin/zsh
/usr/bin/zsh
/usr/bin/git-shell
user1-pc% chsh -s /bin/bash    
Changing shell for manjaro-andrew.
Password: 
chsh: Shell not changed.
user1-pc%
That's pretty darned rude, IMHO[1]. Anyway, try:
Code:
$ sudo usermod -s /bin/bash account-name
for each user whose shell has been changed.


Hope that command helps.




[1] - I had a vendor do something similar many years ago... right after we instituted new user account policies when HIPAA became law. A software vendor came to upgrade their software. Their update process arbitrarily changed everyone's password lifetime to 9999 days---an act that resulted in an interesting phone call between the vendor, myself, and our VP/IT. Lesson: Do not muck around with user accounts.
 
Old 12-21-2021, 06:47 AM   #3
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rnturn View Post
Code:
$ sudo usermod -s /bin/bash account-name
I ran
Code:
user1-pc% sudo usermod -s /bin/bash myAccName
but the outcome is :
Code:
usermod: no changes
user1-pc%

Since it didn't change, means it is still bash shell ?

I ran this to see my shell, it said is bash. but why is the prompting like this ? confusing.
Code:
user1-pc% echo $SHELL
/bin/bash
Each time i have to type :

Code:
user1-pc% bash
to get back my default prompt
Code:
[myAccName@user1-pc ~]$
when i type "exit at my comfortable command prompt, it changes back to its default :
Code:
[myAccName@user1-pc ~]$ echo $SHELL
/bin/bash
[myAccName@user1-pc ~]$ exit
exit
user1-pc%
user1-pc% echo $SHELL
/bin/bash
user1-pc%
What's is happening ? i guess it is not zsh shell.. my mistake.. Somewhere the system mentioned zsh .. hence i thought it is zsh.. (never use zsh before).

Last edited by andrewysk; 12-21-2021 at 06:55 AM.
 
Old 12-21-2021, 07:48 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
If you're running Bash, echo $BASH_VERSION should print Bash version.

Conversely, $ZSH_VERSION is only defined inside Zsh.

Last edited by shruggy; 12-21-2021 at 07:50 AM.
 
Old 12-21-2021, 08:37 AM   #5
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
If you're running Bash, echo $BASH_VERSION should print Bash version.

Conversely, $ZSH_VERSION is only defined inside Zsh.
OK, then confirmed i am running zsh shell. After pacman -Syu, it changes my shell from bash to zsh..

Code:
user1-pc% echo $BASH_VERSION     

user1-pc% echo $ZSH_VERSION 
5.8

user1-pc% bash
[myAccName@user1-pc ~]$ echo $BASH_VERSION
5.1.12(1)-release
[myAccName@user1-pc ~]$  echo $ZSH_VERSION

[myAccName@user1-pc ~]$ exit
exit
user1-pc% echo $ZSH_VERSION
5.8
user1-pc%
Code:
user1-pc% echo $0
/bin/zsh

Last edited by andrewysk; 12-21-2021 at 08:39 AM.
 
Old 12-21-2021, 08:43 AM   #6
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rnturn View Post
Code:
$ sudo usermod -s /bin/bash account-name
for each user whose shell has been changed.

I tried just now to usermod -s /bin/bash myAccName, but it still the same.. Do i have to restart system in order for the default shell change to take effect ?

I think it is not working regardless of reboot or not.
i
Code:
user1-pc% sudo usermod -s /bin/bash myAccName
 
usermod: no changes
user1-pc%
Code:
cat /etc/shells
# Pathnames of valid login shells.
# See shells(5) for details.

/bin/sh
/bin/bash
/bin/zsh
/usr/bin/zsh
/usr/bin/git-shell
user1-pc%

Last edited by andrewysk; 12-21-2021 at 08:48 AM.
 
Old 12-21-2021, 08:55 AM   #7
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
According to this thread on Manjaro forum, you'll have to change the shell in Konsole settings.
 
Old 12-21-2021, 09:24 AM   #8
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
According to this thread on Manjaro forum, you'll have to change the shell in Konsole settings.
I have changed both gui method and both chsh or usermod -s method.. it still goes back to zsh shell everytime i start konsole or terminal view of dolphine.
 
Old 12-21-2021, 09:31 AM   #9
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
This pissed me off, i just uninstall the whole damn zsh package.

Now when i run konsole it runs in bashshell now.. but prompts me warning:
Code:
Warning: Could not find '/bin/zsh', starting '/bin/bash' instead.  Please check your profile settings.

[myAccName@user1-pc ~]$
This is why i hated update/upgrade in manjaro or EOS.. waste my time only when my system is running fine before this.
 
1 members found this post helpful.
Old 12-21-2021, 09:34 AM   #10
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
I looked into konsolerc file.. there is notthing related to bashshell.
could it be stored in Breath.profile ? ?


Code:
$ cat konsolerc 
[Desktop Entry]
DefaultProfile=Breath.profile

[Favorite Profiles]
Favorites=Breath2.profile

[General]
CommandBarLastUsedActions=

[KonsoleWindow]
ShowWindowTitleOnTitleBar=true

[MainWindow]
Height 1024=950
RestorePositionForNextInstance=false
State=AAAA/wAAAAD9AAAAAQAAAAAAAAAAAAAAAPwCAAAAAfsAAAAcAFMAUwBIAE0AYQBuAGEAZwBlAHIARABvAGMAawAAAAAA/////wAAANUBAAADAAACgAAAAYAAAAAEAAAABAAAAAgAAAAI/AAAAAEAAAACAAAAAgAAABYAbQBhAGkAbgBUAG8AbwBsAEIAYQByAQAAAAD/////AAAAAAAAAAAAAAAcAHMAZQBzAHMAaQBvAG4AVABvAG8AbABiAGEAcgEAAAHF/////wAAAAAAAAAA
StatusBar=Disabled
ToolBarsMovable=Disabled
VGA1 Height 1024=653
VGA1 Height 1280x1024=460
VGA1 Width 1280=853
VGA1 Width 1280x1024=640
VGA1 XPosition=427
VGA1 XPosition 1280x1024=0
VGA1 YPosition=29
VGA1 YPosition 1280x1024=519
Width 1280=640

[Notification Messages]
CloseSingleTab=false

[UiSettings]
WindowColorScheme=Default
 
Old 12-21-2021, 10:36 AM   #11
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
There is a screenshot in the thread I linked above. Sorry, it's in Chinese, but I guess you can identify what have to be changed.
 
Old 12-21-2021, 12:48 PM   #12
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Run this change shell command:
Code:
chsh -s /bin/bash
Then type $ env | grep SHELL
EDIT:
Quote:
user1-pc% chsh -s /bin/bash
Changing shell for manjaro-andrew.
Password:
chsh: Shell not changed.
user1-pc%
Noticed you did that already, perhaps because you are not "user1-pc%"
What is the contents of /etc/hostname?
Did you try changing it while running bash?

Last edited by Brains; 12-21-2021 at 01:08 PM.
 
Old 12-21-2021, 04:32 PM   #13
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
Noticed you did that already, perhaps because you are not "user1-pc%"
What is the contents of /etc/hostname?
LOL sorry, user1-pc is just a "name in disguise". i won't want to show my true hostname and account name on public forum.. and that name that you showed me .. was a fish escaped from net..
No worry about hostname and account name, i know those 2 name, there is no mistake on that part.
Sorry, i have no intention of misleading you, it is just for my own "safety".
 
1 members found this post helpful.
Old 12-21-2021, 04:39 PM   #14
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
Run this change shell command:
Code:
chsh -s /bin/bash
Then type $ env | grep SHELL
launch konsole:
**the " warning " error was due to me uninstalled zsh (because i was pissed, at least by uninstalling it, i will has got bash in konsole at launch)**

Code:
Warning: Could not find '/bin/zsh', starting '/bin/bash' instead.  Please check your profile settings.
[myAccName@user1-pc ~]$

[myAccName@user1-pc ~]$ chsh -s /bin/bash
Changing shell for myAccName.
Password: 
chsh: Shell not changed.

[myAccName@user1-pc ~]$ env | grep SHELL
SHELL=/bin/bash
SHELL_SESSION_ID=e73adf3213844d0cb00ff87ccb2440ff
[myAccName@user1-pc ~]$
 
Old 12-21-2021, 04:48 PM   #15
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
There is a screenshot in the thread I linked above. Sorry, it's in Chinese, but I guess you can identify what have to be changed.

I change this to /bin/bash (for all the profile that i can edit) :
Click image for larger version

Name:	konsoleshell2.png
Views:	31
Size:	86.2 KB
ID:	37909
After hit "apply" and exit the konsole.
Relaunch the konsole, and check the same place again, notice it always change back to /bin/zsh abeit i have modified it million times.
Click image for larger version

Name:	konsoleshell.png
Views:	21
Size:	232.7 KB
ID:	37908
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] zsh - extend zsh completion blueray Linux - Newbie 1 10-17-2020 02:44 AM
ZSH -- Apple switching BASH => ZSH, what do you think? LQParsons Linux - Newbie 2 06-06-2019 10:01 AM
LXer: How to Setup ZSH and Oh-my-zsh on Linux LXer Syndicated Linux News 0 11-02-2017 12:42 AM
ZSH - Change default non-root shell symbol from % to $? Vryali Linux - Newbie 1 07-31-2012 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration