- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: default shell
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
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
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
06-10-2002 05:30 AM
06-10-2002 05:30 AM
default shell
I downloaded and successfully installed bash from .depot file.
So, I wish to define bash as default shell for root account. I used SAM from HP to set this.
Meanwhile, when I changed root??s default shell from SH to BASH, I wasn??t able to log in FTP. I received the message: "530 - root access denyed..."
When I back to SH, all get OK again.
Can anyone help me?
thanks & regards,
Luiz Fernando
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:38 AM
06-10-2002 05:38 AM
Re: default shell
short answer is that root has to be in sh shell. There have been a number of threads here about people who have had lots of problems when they start switching root shell. is there a reason why you want to change it?
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:40 AM
06-10-2002 05:40 AM
Re: default shell
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:41 AM
06-10-2002 05:41 AM
Re: default shell
Check the following thread, in particular Bill Hassell's comments:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2efaa14d9abcd4118fef0090279cd0f9,00.html
Basically the idea is - DON'T
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:41 AM
06-10-2002 05:41 AM
Re: default shell
DO NOT change the root's default shell...not only will you see ftp weirdness...YOU'LL NOT BE ABLE TO BOOT THE SYSTEM.
You can change the shell in a .profile command if you must...or from the command line or a script, etc.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:44 AM
06-10-2002 05:44 AM
Re: default shell
Also, please read this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 05:47 AM
06-10-2002 05:47 AM
Re: default shell
sh is mandatory for root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 06:09 AM
06-10-2002 06:09 AM
Re: default shell
thank you all...
I would like to explain why I want to change root??s shell.
I want to use the bash autocomplete feature, which is not present in sh. So I decided to change to bash.
But, as you said, I shouldn??t do this. So, I would like to know if is possible to use autocomplete feature in sh or if there is another way to call bash whenever I start a new terminal windows in hp-ux system.
I wait your comments,
thanks & regards,
Luiz Fernando
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 06:35 AM
06-10-2002 06:35 AM
Re: default shell
You don't need bash. Stick with the posix shell as outlined in the threads you were pointed to. The posix shell offers file name completion (which is what I believe you were referring to when you said "auotcomplete feature") as well as history file/command line edit. It should be every thing you need.
And please assign points to responses - it's the only reward those that help you get and it's the only way for people reviewing this post in the future to tell which answers helped.
Good luck,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 06:49 AM
06-10-2002 06:49 AM
Re: default shell
It is not suggested to change root's default shell. Try to keep /sbin/sh only. In case change is must, then add bash shell in /etc/shells file to work ftp.
Best of luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 08:15 AM
06-10-2002 08:15 AM
Re: default shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 03:51 AM
06-11-2002 03:51 AM
Re: default shell
If not, please describe what exactly you mean by "autocomplete feature". If /sbin/sh indeed does not have that, we can give you a *safe* method for giving root a bash shell during normal operation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 03:54 AM
06-11-2002 03:54 AM
Re: default shell
After you have logged in as root, simply type in either the path to "bash" or "bash" if it's in your PATH variable.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 04:02 AM
06-11-2002 04:02 AM
Re: default shell
To get filename completion (ESC-ESC or auto-completion) and also command stack recall (ESC-K, etc), put this line into /etc/profile:
export HISTFILE-$HOME/.sh_history
This should be set for ksh and BASH anyways, but now it enables all users that run POSIX shells (/sbin/sh, /usr/bin/sh, /usr/bin/ksh and so on) to have command recall and filename completion.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 04:59 AM
06-11-2002 04:59 AM
Re: default shell
export HISTFILE=$HOME/.sh_history
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 05:43 AM
06-11-2002 05:43 AM
Re: default shell
Marty