- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing default shell to bash?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 06:02 PM
тАО10-19-2000 06:02 PM
I would like to change default shell for normal user to bash.
I understand bash is not availble (or maybe I'm wrong), how can I include bash in this case.
I'm using a linux NIS server for the HP-UX and Solaris.
Thanks for any reply.
Han Ming
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 06:52 PM
тАО10-19-2000 06:52 PM
Re: Changing default shell to bash?
1. You can do this, but don't do it for root!
2. Specify /usr/bin/bash in the user(s) you want in /etc/passwd.
3. Add /usr/bin/bash to the /etc/shells file -- along with every other shell that you want to remain valid. /etc/shells is an ASCII file containing a list of legal shells on the system. Each shell is listed in the file by its absolute path name. Lines or portions of lines beginning with "#" are assumed to be comments and are ignored. Blank lines are also ignored. Make the permissions 444 and the ownership "bin:bin".
The file should look like this:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
/usr/bin/bash
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 08:15 PM
тАО10-19-2000 08:15 PM
Re: Changing default shell to bash?
Thanks for the reply.
But will it works even if bash cannot be found in my /usr/bin directory.
I can't find it there.
Is it that I have delete it off accidentally or need to be downloaded or ....?
Thanks for any advice.
Han Ming
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 08:29 PM
тАО10-19-2000 08:29 PM
SolutionAnd input "bash" to search.
Then you can find "bash" package.
With regards,
Watanabe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2002 09:48 AM
тАО05-07-2002 09:48 AM
Re: Changing default shell to bash?
hmm, errr.. I`m with the same problem to install the bash here, but... am I supposed to create the /etc/shells file??? This file doesn`t exist in my HPUX... another thing, even when I created this file, give it the proper permission and ownership, when I try to configure any user using the SAM, I didn`t see the /usr/bin/bash shell in the shells option list.
Thanks in advance...
Regards..
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2002 09:59 AM
тАО05-07-2002 09:59 AM
Re: Changing default shell to bash?
Yes, you can just create the /etc/shells file. Contents should be as JRF posted. Then you'll need to download the package as Watanabe suggested. That should be all there is to it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2002 10:01 AM
тАО05-07-2002 10:01 AM
Re: Changing default shell to bash?
Pete
Pete