Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
chsh(1)								       chsh(1)

NAME
       chsh - change default login shell

SYNOPSIS
       login-name [shell]

       login-name [shell]

       login-name [shell]

       login-name [shell]

       login-name [shell]

DESCRIPTION
       The  command  changes  the  login-shell	for a user's login name	in the
       repository (see passwd(1)).

       The DCE repository is only available if Integrated Login	has been  con-
       figured,	 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 supe-
       ruser privileges.

       If the repository is not	specified; i.e., [login-name], the login shell
       is changed in passwd file only.

       Run after running to make sure the information was processed correctly.

   Arguments
	      login-name  A login name of a user.

	      shell	  The absolute path name of  a	shell.	 If  the  file
			  exists,  the	new login shell	must be	listed in that
			  file.	 Otherwise, you	can specify one	of  the	 stan-
			  dard	shells	listed	in the getusershell(3C)	manual
			  entry.  If shell is  omitted,	 it  defaults  to  the
			  POSIX	shell,

   Options
       The following option is recognized:

	      Specify  the repository to which the operation is	to be applied.
			     Supported repositories include and

   Security Restrictions
       You  must  have	appropriate  privileges	to use the optional login-name
       argument	to change another user's login shell.

NETWORKING FEATURES
   NFS
       File can	be implemented as a Network Information	 Service  (NIS)	 data-
       base.

EXAMPLES
       To change the login shell for user to the default:

       To change the login shell for user to the C shell:

       To  change  the	login shell for	user to	the Korn shell in the DCE reg-
       istry:

WARNINGS
       As many users may try to	write the file simultaneously, a passwd	 lock-
       ing  mechanism  was  deviced.   If  this	locking	fails after subsequent
       retrying, terminates.

AUTHOR
       was developed by	HP and the University of California, Berkeley.

NOTES
       The command is a	hard link to command. When is  executed	 actually  the
       command	gets  executed	with  appropriate arguments to change the user
       login shell in the repository specified in command line.	If no  reposi-
       tory is specified the login shell is changed in file.

FILES
SEE ALSO
       chfn(1),	  csh(1),  ksh(1),  passwd(1),	sh(1),	sh-posix(1),  getuser-
       shell(3C), pam(3), passwd(4), shells(4).

								       chsh(1)

NAME | SYNOPSIS | DESCRIPTION | NETWORKING FEATURES | EXAMPLES | WARNINGS | AUTHOR | NOTES | FILES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=chsh&sektion=1&manpath=HP-UX+11.22>

home | help