shadow/man/sv/chsh.1

65 lines
2.0 KiB
Groff

.\" Title: chsh
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: 20.07.2006
.\" Manual: Användarkommandon
.\" Source: Användarkommandon
.\"
.TH "CHSH" "1" "20\-07\-2006" "Användarkommandon" "Användarkommandon"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAMN"
chsh \- ändra inloggningsskal
.SH "SYNOPSIS"
.HP 5
\fBchsh\fR [\fIflaggor\fR] [\fIINLOGGNINGSNAMN\fR]
.SH "BESKRIVNING"
.PP
\fBchsh\fR
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 super user may change the login shell for any account.
.SH "FLAGGOR"
.PP
Flaggorna som gäller för kommandot
\fBchsh\fR
är:
.TP 3n
\fB\-h\fR, \fB\-\-help\fR
Visa hjälpmeddelande och avsluta.
.TP 3n
\fB\-s\fR, \fB\-\-shell\fR\fISKAL\fR
The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
.PP
If the
\fB\-s\fR
option is not selected,
\fBchsh\fR
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
\fI[ ]\fR
marks.
.SH "NOTERA"
.PP
The only restriction placed on the login shell is that the command name must be listed in
\fI/etc/shells\fR, unless the invoker is the super\-user, and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing
\fI/bin/rsh\fR
in
\fI/etc/shells\fR
is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value.
.SH "FILER"
.TP 3n
\fI/etc/passwd\fR
Användarkontoinformation.
.TP 3n
\fI/etc/shells\fR
Lista på giltiga inloggningsskal.
.TP 3n
\fI/etc/login.defs\fR
Shadow password suite configuration.
.SH "SE OCKSÅ"
.PP
\fBchfn\fR(1),
\fBlogin.defs\fR(5),
\fBpasswd\fR(5).