cancel
Showing results for 
Search instead for 
Did you mean: 

Valid profile shell

yoge
Occasional Visitor

Valid profile shell

Hi, can anyone let me know which is the valid profile shell?
7 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: Valid profile shell

Hi:

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...
yoge
Occasional Visitor

Re: Valid profile shell

what about pfsh shell?
James R. Ferguson
Acclaimed Contributor

Re: Valid profile shell

Hi:

> 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...
yoge
Occasional Visitor

Re: Valid profile shell

*)bash
*)csh
*)pfsh

which one is the valid profile shell here?


James R. Ferguson
Acclaimed Contributor

Re: Valid profile shell

Hi (again):

> 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...
Dennis Handly
Acclaimed Contributor

Re: Valid profile shell

>which one is the valid profile shell here?

(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.
yoge
Occasional Visitor

Re: Valid profile shell

Thanks JRF. I got it from your link.