> Linux Reviews > man >

chsh


  1. chsh.1.man


1. chsh.1.man

Manpage of CHSH

CHSH

Section: User Commands (1)
Updated: 16/02/2011
Index Return to Main Contents
 

NOME

chsh - cambia la shell di login  

SINOSSI

chsh [opzioni] [LOGIN]
 

DESCRIZIONE

The chsh command changes the user login shell. This determines the name of the user's initial login command. A normal user may only change the login shell for her own account, the superuser may change the login shell for any account.  

OPZIONI

Il comando chsh accetta le seguenti opzioni:

-h, --help

Mostra un messaggio di aiuto ed esce.

-s, --shell SHELL

Il nome della nuova shell di login dell'utente. Lasciando questo campo vuoto si fa in modo che il sistema selezioni la shell di connessione predefinita.

If the -s option is not selected, chsh operates in an interactive fashion, prompting the user with the current login shell. Enter the new value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of [ ] marks.  

NOTA

The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser, and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value.  

CONFIGURATION

The following configuration variables in /etc/login.defs change the behavior of this tool:

CHSH_AUTH (boolean)

If yes, the chsh program will require authentication before making any changes, unless run by the superuser.

LOGIN_STRING (string)

The string used for prompting a password. The default is to use "Password: ", or a translation of that string. If you set this variable, the prompt will no be translated.

If the string contains %s, this will be replaced by the user's name.

 

FILE

/etc/passwd

informazioni sugli account utente.

/etc/shells

#-#-#-#-# #-#-#-#-# Elenco delle shell di login valide. #-#-#-#-# #-#-#-#-# Elenco delle shell di login ammesse.

/etc/login.defs

Shadow password suite configuration.
 

VEDERE ANCHE

chfn(1), login.defs(5), passwd(5).


 

Index

NOME
SINOSSI
DESCRIZIONE
OPZIONI
NOTA
CONFIGURATION
FILE
VEDERE ANCHE

This document was created by man2html using the manual pages.
Time: 17:37:33 GMT, October 23, 2013

SVENSKA - SVENSKA - SVENSKA - ja - pl - SVENSKA - zh_CN