
276 Linux Applications on pSeries
After you have executed the chsec command, use the lssec command to verify
that the shells attribute is correct, and if so, then remove the
/etc/security/login.cfg~1 file since it is not needed anymore:
lssec -f /etc/security/login.cfg -s usw -a shells
Since the list of allowed shells has been updated with the /usr/bin/bash
command, we can now update the login shell for a user account in the
/etc/passwd file; use the chuser command. In the following example we change
the login shell to bash for the groda user:
chuser shell=/usr/bin/bash groda
If the list of allowed shells is not updated properly, you will get a ...