United States-English |
|
|
HP-UX Reference > Cchsh(1)HP-UX 11i Version 3: February 2007 |
|
NAMEchsh — change default login shell SYNOPSISchsh login-name [shell] chsh -r files login-name [shell] chsh -r nis login-name [shell] chsh -r dce login-name [shell] DESCRIPTIONThe chsh command changes the login-shell for a user's login name in the repository (see passwd(1)). The DCE repository (-r dce) is only available if Integrated Login has been configured; see auth.adm(1M). If Integrated Login has been configured, other considerations apply. A user with appropriate DCE privileges is capable of modifying a user's shell; this is not dependent upon superuser privileges. If the repository is not specified (as in chsh [login-name]), the login shell is changed in the /etc/passwd file only. Run finger after running chsh to make sure the information was processed correctly. NotesThe chsh command is a hard link to the passwd command. When chsh is executed, actually the passwd command gets executed with appropriate arguments to change the user login shell in the repository specified in command line. If no repository is specified, the login shell is changed in the /etc/passwd file. Arguments
EXAMPLESTo change the login shell for user voltaire to the default: chsh voltaire To change the login shell for user descartes to the C shell: chsh descartes /usr/bin/csh To change the login shell for user aristotle to the Korn shell in the DCE registry: chsh -r dce aristotle /usr/bin/ksh WARNINGSIf two or more users try to write the /etc/passwd file at the same time, a passwd locking mechanism was devised. If this locking fails after subsequent retrying, chsh terminates. SEE ALSOchfn(1), csh(1), ksh(1), passwd(1), sh(1), sh-posix(1), getusershell(3C), pam(3), passwd(4), shells(4). |
Printable version | ||
|