- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to cahnge user shell in 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
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
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
тАО04-29-2010 10:30 AM
тАО04-29-2010 10:30 AM
Need to cahnge user shell in to bash
used sam & chsh command too, says it is an invalid shell
but just I log in to the system then temporally change it by just type bash & enter it work nicely
please tell me how to change it & also need command to list all installed shells
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2010 10:48 AM
тАО04-29-2010 10:48 AM
Re: Need to cahnge user shell in to bash
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2010 10:49 AM
тАО04-29-2010 10:49 AM
Re: Need to cahnge user shell in to bash
Try adding the absolute path of the shell to '/etc/shells'. If you don't already have this file (and you probably don't), make it and populate it with:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
/usr/local/bin/bash
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2010 04:46 PM
тАО04-29-2010 04:46 PM
Re: Need to cahnge user shell in to bash
... and to assign your points to Pete and JRF
http://forums11.itrc.hp.com/service/forums/helptips.do?#33
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2010 03:26 AM
тАО04-30-2010 03:26 AM
Re: Need to cahnge user shell in to bash
sorry to say It is still not working
primesh
:(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2010 03:29 AM
тАО04-30-2010 03:29 AM
Re: Need to cahnge user shell in to bash
Did you add as said by JRF ?
post your '/etc/shells'
cat /etc/shells
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2010 11:20 PM
тАО04-30-2010 11:20 PM
Re: Need to cahnge user shell in to bash
I did as he explained then try to add but the I sows like it added but when I try to login (putty) window vanished
then I change it again to sh that makes ok but still not be able to change it bash
primesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2010 11:41 PM
тАО04-30-2010 11:41 PM
Re: Need to cahnge user shell in to bash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2010 03:14 AM
тАО05-01-2010 03:14 AM
Re: Need to cahnge user shell in to bash
Show us.
> cat /etc/shells
Like that.
> [...] then try to add but the I sows like
> it added [...]
Huh?
> [...] but still not be able to change it
> bash
If you leave the login shell as something
which works, can you run "bash"?
/usr/local/bin/bash
> [...] bash location is /usr/local/bin/bash
Can we begin at the beginning? How did it
get there? What, exactly, did you install,
how, exactly?
> [...] also need command to list all
> installed shells
A shell is only a program. Anyone could
install one anywhere. (Well, anywhere he had
write permission.) The shells permitted as
login shells are in "/etc/shells" (which can
be changed).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2010 12:38 AM
тАО05-02-2010 12:38 AM
Re: Need to cahnge user shell in to bash
You can change your shell in /etc/passwd file, login as a root user only.