pavement

Chsh

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
[[chsh]] will allow you to change your shell to a different one than the one chosen when your account was created. Your user info will open up in your editor of choice and you'll have to change the '''shell''' line to point to the shell you want -- make sure you point to a valid shell!  
 
[[chsh]] will allow you to change your shell to a different one than the one chosen when your account was created. Your user info will open up in your editor of choice and you'll have to change the '''shell''' line to point to the shell you want -- make sure you point to a valid shell!  
  
Note that if you change a user's shell to something that isn't actually a shell, you can break their login -- intentionally, if you want to block the user from logging in and you switch the shell to [[ /sbin/nologin]], for example, or unintenionally, if you give them a misspelled shell or point to a shell that isn't on a mounted volume (e.g., the shell is in /usr/local/bin/bash and /usr/local/ isn't mounted).  
+
Note that if you change a user's shell to something that isn't actually a shell, you can break their login -- intentionally, if you want to block the user from logging in and you switch the shell to [[ /sbin/nologin]] or another [[invalid_shell|invalid shell]], for example, or unintenionally, if you give them a misspelled shell or point to a shell that isn't on a mounted volume (e.g., the shell is in /usr/local/bin/bash and /usr/local/ isn't mounted).  
  
 
Also note that some programs (e.g., ftp,) won't allow the user to log in if they don't have a valid shell.
 
Also note that some programs (e.g., ftp,) won't allow the user to log in if they don't have a valid shell.

Revision as of 02:00, 3 October 2004

chsh will allow you to change your shell to a different one than the one chosen when your account was created. Your user info will open up in your editor of choice and you'll have to change the shell line to point to the shell you want -- make sure you point to a valid shell!

Note that if you change a user's shell to something that isn't actually a shell, you can break their login -- intentionally, if you want to block the user from logging in and you switch the shell to /sbin/nologin or another invalid shell, for example, or unintenionally, if you give them a misspelled shell or point to a shell that isn't on a mounted volume (e.g., the shell is in /usr/local/bin/bash and /usr/local/ isn't mounted).

Also note that some programs (e.g., ftp,) won't allow the user to log in if they don't have a valid shell.

See also: Category:Shells - bash - sh - csh - tcsh - ksh - psh - zsh

Personal tools