- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root's shell - need to verify
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
07-05-2007 10:41 AM
07-05-2007 10:41 AM
root's shell - need to verify
checked /etc/passwd - its /usr/bin/sh
question: why does sam only show /usr/bin/
then what shell to use.
it does not allow you to use /sbin/sh
Shouldn't root in /etc/passwd be /sbin/sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2007 11:32 AM
07-05-2007 11:32 AM
Re: root's shell - need to verify
Don't trust SAM. You can easily change root's default shell by editing /etc/passwd with the vipw command or by using the usermod command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2007 11:48 AM
07-05-2007 11:48 AM
Re: root's shell - need to verify
As far as SAM, it 'fills-in' /usr/bin/sh for all users. Perhaps it is too friendly and should gray-out the shell choice just for root.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2007 12:40 PM
07-05-2007 12:40 PM
Re: root's shell - need to verify
To add to this discussion: the use of '/usr/bin/sh' for *non-root* users is preferred over '/sbin/sh' since as noted, the version in '/usr' uses shared libraries rather than archived ones. This allows some sharing of code and reduces the overall, cumulative memory footprint of n+ instantiations.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2007 07:10 PM
07-05-2007 07:10 PM
Re: root's shell - need to verify
However, if you are adventurous you could get the sources of another shell, say Bash, and build it as a self-contained statically linked binary.
Install the build in /sbin and try it on a test box.
You could always get a working root shell if you booted from an install CD to fix things.
I also wonder if it worked to boot from ISL with something like "hpux -i/sbin/shell", analogous to the init boot param on Linux?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2007 08:35 PM
07-05-2007 08:35 PM
Re: root's shell - need to verify
You can't do this on IPF since libc.a is no longer provided.
It is just better to stick with /sbin/sh.
>JRF: the version in /usr uses shared libraries
This also allows you to use alternate locales.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2007 07:05 AM
07-06-2007 07:05 AM
Re: root's shell - need to verify
Daniel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 05:56 PM
07-09-2007 05:56 PM
Re: root's shell - need to verify
http://forums1.itrc.hp.com/service/forums/helptips.do?#33