- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Valid profile 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
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-06-2010 11:00 AM
тАО04-06-2010 11:00 AM
Valid profile shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2010 11:10 AM
тАО04-06-2010 11:10 AM
Re: Valid profile shell
For the 'root' account, *never* change the login shell as defined in '/etc/passwd' from the Posix shell '/sbin/sh'. To do so, may lead to an un-startable system.
In HP-UX the Posix shell is a Korn-like superset. Non-root users should use '/usr/bin/sh' which uses dynamically linked libraries to reduce the memory footprint. The root user must use a statically linked shell '/sbin/sh' as I noted. This allows the root account to function in single-user mode when '/usr' isn't mounted.
The HP-UX Posix shell first sources (reads) '/etc/profile' and then '${HOME}/.profile'. You can customize '/etc/profile' for all user's needs; and '${HOME}/.profile' on an individual basis as necessary.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2010 11:40 AM
тАО04-06-2010 11:40 AM
Re: Valid profile shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2010 11:46 AM
тАО04-06-2010 11:46 AM
Re: Valid profile shell
> what about pfsh shell?
You can specify that as the default shell for any user *other than* 'root that you want. Change the default program (shell) in '/etc/passwd' accordingly. You can use 'chsh' to do this (see the manpages).
Since you wish to define and use a non-standard shell, you should create '/etc/shells' (if you don't already have it) and add the absolute path for 'pfsh'.
The file, '/etc/shells' should be readable by everyone and contain (at least):
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
Add '/usr/bin/pfsh' to the end in your case assuming that that is the correct absolute path.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2010 02:12 PM
тАО04-06-2010 02:12 PM
Re: Valid profile shell
*)csh
*)pfsh
which one is the valid profile shell here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2010 02:29 PM
тАО04-06-2010 02:29 PM
Re: Valid profile shell
> which one is the valid profile shell here?
I don't quite know what you are asking. See:
http://docs.sun.com/app/docs/doc/816-5165/pfsh-1?a=view
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2010 03:10 PM
тАО04-06-2010 03:10 PM
Re: Valid profile shell
(None of these are "real" shells. Only sh or ksh. :-)
What do you mean by "profile shell"?
From JRF's URL, I don't think they exist on HP-UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2010 04:03 PM
тАО04-06-2010 04:03 PM