shadow/man/sv/newgrp.1

63 lines
1.9 KiB
Groff

.\" Title: newgrp
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
.\" Date: 20.07.2006
.\" Manual: Användarkommandon
.\" Source: Användarkommandon
.\"
.TH "NEWGRP" "1" "20\-07\-2006" "Användarkommandon" "Användarkommandon"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAMN"
newgrp \- logga in i en ny grupp
.SH "SYNOPSIS"
.HP 7
\fBnewgrp\fR [\-] [\fIgrupp\fR]
.SH "BESKRIVNING"
.PP
\fBnewgrp\fR
is used to change the current group ID during a login session. If the optional
\fB\-\fR
flag is given, the user's environment will be reinitialized as though the user had logged in, otherwise the current environment, including current working directory, remains unchanged.
.PP
\fBnewgrp\fR
changes the current real group ID to the named group, or to the default group listed in
\fI/etc/passwd\fR
if no group name is given.
\fBnewgrp\fR
also tries to add the group to the user groupset. If not root, the user will be prompted for a password if she does not have a password (in
\fI/etc/shadow\fR
if this user has an entry in the shadowed password file, or in
\fI/etc/passwd\fR
otherwise) and the group does, or if the user is not listed as a member and the group has a password. The user will be denied access if the group password is empty and the user is not listed as a member.
.PP
If there is an entry for this group in
\fI/etc/gshadow\fR, then the list of members and the password of this group will be taken from this file, otherwise, the entry in
\fI/etc/group\fR
is considered.
.SH "FILER"
.TP 3n
\fI/etc/passwd\fR
Användarkontoinformation.
.TP 3n
\fI/etc/shadow\fR
Säker användarkontoinformation.
.TP 3n
\fI/etc/group\fR
Gruppkontoinformation.
.TP 3n
\fI/etc/gshadow\fR
Säker gruppkontoinformation.
.SH "SE OCKSÅ"
.PP
\fBid\fR(1),
\fBlogin\fR(1),
\fBsu\fR(1),
\fBgpasswd\fR(1),
\fBgroup\fR(5),
\fBgshadow\fR(5).