Operating System - HP-UX
1835910 Members
3002 Online
110086 Solutions
New Discussion

How to configure bash on a user account ?

 
Yaboto
Super Advisor

How to configure bash on a user account ?

Hi,

I have just downloaded bash-3.2 and installed it in an hp unix 11.23.
What is left to be done now ?
How will I configure it to take advantage of it ?
What is the configuration process of bash on a user account ?

Regards,
Berag
5 REPLIES 5
Yogeeraj_1
Honored Contributor

Re: How to configure bash on a user account ?

hi berag,

1. Run bash
and see if you are getting the expected behaviour.

2. create a test account to use the bash shell.

check that on your /etc/passwd, it is configured accordingly:
e.g

yogeeraj:VbpTpE38txwlY:128:20:Yogeeraj,,,:/home/yogeeraj:/usr/bin/bash


hope this helps!
kind regards
yogeeraj


No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
V. Nyga
Honored Contributor

Re: How to configure bash on a user account ?

Hi,

the user can run it manually after login - 'bash' - or you make it to his start shell like yogeeraj mentioned.

Hint: you shall not make bash the start shell for 'root' - not all directories are there when you go to single user mode.

Volkmar
*** Say 'Thanks' with Kudos ***

Re: How to configure bash on a user account ?

If the user is controlled locally (if not relying on LDAP/NIS etc) then as root run:
usermod -s abs_path_of_bash username

Dennis Handly
Acclaimed Contributor

Re: How to configure bash on a user account ?

>Rangarajan: If the user is controlled locally

You can also use chsh(1). It also has -r options for NIS, etc.
Rasheed Tamton
Honored Contributor

Re: How to configure bash on a user account ?

Hi,

#which bash
/usr/bin/bash

It will give you the path of the bash. As Yogeeraj explained, just test with a new user or change the shell of an existing normal user to test it.

Regards,
Rasheed Tamton.