shadow/man/sv/userdel.8

126 lines
3.3 KiB
Groff

.\" Title: userdel
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: 20.07.2006
.\" Manual: Systemhanteringskommandon
.\" Source: Systemhanteringskommandon
.\"
.TH "USERDEL" "8" "20\-07\-2006" "Systemhanteringskommandon" "Systemhanteringskommandon"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAMN"
userdel \- ta bort ett användarkonto och relaterade filer
.SH "SYNOPSIS"
.HP 8
\fBuserdel\fR [flaggor] \fIINLOGGNINGSNAMN\fR
.SH "BESKRIVNING"
.PP
Kommandot
\fBuserdel\fR
ändrar i systemkontofilerna, tar bort alla poster som refererar till
\fIlogin_name\fR. Den angivna användaren måste finnas.
.SH "FLAGGOR"
.PP
Flaggorna som gäller för kommandot
\fBuserdel\fR
är:
.TP 3n
\fB\-f\fR, \fB\-\-force\fR
This option forces the removal of the user, even if she is still logged in. It also forces
\fBuserdel\fR
to remove the user's home directory or her mail spool, even if another user uses the same home directory or if the mail spool is not owned by the specified user. If
\fIUSERGROUPS_ENAB\fR
is defined to
\fIyes\fR
in
\fI/etc/login.defs\fR
and if a group exists with the same name as the deleted user, then this group will be removed, even if it is still the primary group of another user.
.sp
\fINotera:\fR
Denna flagga är farlig och kan göra att ditt system försätts i ett inkonsistent tillstånd.
.TP 3n
\fB\-h\fR, \fB\-\-help\fR
Visa hjälpmeddelande och avsluta.
.TP 3n
\fB\-r\fR, \fB\-\-remove\fR
Files in the user's home directory will be removed along with the home directory itself and the user's mail spool. Files located in other file systems will have to be searched for and deleted manually.
.sp
The mail spool is defined by the
\fIMAIL_DIR\fR
variable in the
\fIlogin.defs\fR
file.
.SH "FILER"
.TP 3n
\fI/etc/group\fR
Gruppkontoinformation.
.TP 3n
\fI/etc/login.defs\fR
Shadow password suite configuration.
.TP 3n
\fI/etc/passwd\fR
Användarkontoinformation.
.TP 3n
\fI/etc/shadow\fR
Säker användarkontoinformation.
.SH "AVSLUTNINGSVÄRDEN"
.PP
Kommandot
\fBuserdel\fR
avslutas med följande värden:
.TP 3n
\fI0\fR
lyckad
.TP 3n
\fI1\fR
kan inte uppdatera lösenordsfilen
.TP 3n
\fI2\fR
ogiltig kommandosyntax
.TP 3n
\fI6\fR
angiven användare finns inte
.TP 3n
\fI8\fR
användaren är för närvarande inloggad
.TP 3n
\fI10\fR
kan inte uppdatera gruppfilen
.TP 3n
\fI12\fR
kan inte ta bort hemkatalogen
.SH "TÄNK PÅ"
.PP
\fBuserdel\fR
will not allow you to remove an account if the user is currently logged in. You must kill any running processes which belong to an account that you are deleting.
.PP
Du får inte ta bort några NIS\-attribut på en NIS\-klient. Detta måste genomföras på NIS\-servern.
.PP
If
\fIUSERGROUPS_ENAB\fR
is defined to
\fIyes\fR
in
\fI/etc/login.defs\fR,
\fBuserdel\fR
will delete the group with the same name as the user. To avoid inconsistencies in the passwd and group databases,
\fBuserdel\fR
will check that this group is not used as a primary group for another user, and will just warn without deleting the user otherwise. The
\fB\-f\fR
option can force the deletion of this group.
.SH "SE OCKSÅ"
.PP
\fBchfn\fR(1),
\fBchsh\fR(1),
\fBpasswd\fR(1),
\fBlogin.defs\fR(5),
\fBgpasswd\fR(8),
\fBgroupadd\fR(8),
\fBgroupdel\fR(8),
\fBgroupmod\fR(8),
\fBuseradd\fR(8),
\fBusermod\fR(8).