Operating System - HP-UX
1751783 Members
4864 Online
108781 Solutions
New Discussion юеВ

Re: Shell type on trusted system

 
Ashish Jain
Advisor

Shell type on trusted system

If I specify a non defualt shell for a login account on my HPUX 11.0 trusted system, I get an error saying this shell not allowed. Any clues where can I make an entry for this shell?

5 REPLIES 5
Donald Kok
Respected Contributor

Re: Shell type on trusted system

There is a a file /etc/shells. In this file you have to mention al shells you like to use in /etc/passwd or manually, like

/sbin/sh
usr/bin/ksh
.
.

Good luck
Donald
My systems are 100% Murphy Compliant. Guaranteed!!!
James R. Ferguson
Acclaimed Contributor

Re: Shell type on trusted system

Hi:

...and one word of caution: *never* change the default shell for 'root' from '/sbin/sh'. If you do, you will end up with an unbootable system.

Regards!

...JRF...
Ashish Jain
Advisor

Re: Shell type on trusted system

Donald this doesn't work on atrusted system.

thnx
Steve Steel
Honored Contributor

Re: Shell type on trusted system

Hi

Man Shells

shells(4) shells(4)

NAME
shells - list of allowed login shells

SYNOPSIS
/etc/shells

DESCRIPTION
/etc/shells is an ASCII file containing a list of legal shells on the
system. Each shell is listed in the file by its absolute path name.

Lines or portions of lines beginning with # are assumed to be comments
and are ignored. Blank lines are also ignored.



Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
James R. Ferguson
Acclaimed Contributor

Re: Shell type on trusted system

Hi:

If 'etc/shells' doesn't exist, or isn't readable, then the following list of valid shells is assumed:

/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh

This is documented in 'man 3 getusershell'.

Therefore, create an /etc/shells file. Make its permissions 444 owned by 'root'. Add the above standard shells and add your chosen shell to the list.

Regards!

...JRF...