Saturday, July 16, 2011

AIX user administration - chsh

There are times when you want to change your shell. The default shell in AIX is the Korn shell, or ksh. To change the shell, execute chsh with the user's name, and then select the desired shell, as shown in Listing

Change a user's shell
 
# finger xander
Login name: xander                    In real life: Xander Cormany
Site Info: 317.555.1234
Directory: /home/xander                 Shell: /usr/bin/ksh
No Plan.

# chsh xander
 Current available shells:
                /bin/sh
                /bin/bsh
                /bin/csh
                /bin/ksh
                /bin/tsh
                /bin/ksh93
                /usr/bin/sh
                /usr/bin/bsh
                /usr/bin/csh
                /usr/bin/ksh
                /usr/bin/tsh
                /usr/bin/ksh93
                /usr/bin/rksh
                /usr/bin/rksh93
                /usr/sbin/uucp/uucico
                /usr/sbin/sliplogin
                /usr/sbin/snappd
 xander's current login shell:
                /usr/bin/ksh
 Change (yes) or (no)? > yes
 To?>/usr/bin/csh

# finger xander
Login name: xander                    In real life: Xander Cormany
Site Info: 317.555.1234
Directory: /home/xander                 Shell: /usr/bin/csh
No Plan.

No comments:

Post a Comment