[SOLVED] manjaro update changes my default bash prompt to user1-pc% ! how to change it back ?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803
Rep:
Quote:
Originally Posted by andrewysk
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.
[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.
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).
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%
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.
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?
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".
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 ~]$
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) :
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.