Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / pl / newgrp.1
1 '\" t
2 .\"     Title: newgrp
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5 .\"      Date: 02/16/2011
6 .\"    Manual: Polecenia użytkownik\('ow
7 .\"    Source: Polecenia użytkownik\('ow
8 .\"  Language: Polish
9 .\"
10 .TH "NEWGRP" "1" "02/16/2011" "Polecenia użytkownik\('ow" "Polecenia użytkownik\('ow"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAZWA"
31 newgrp \- log in to a new group
32 .SH "SK\(/LADNIA"
33 .HP \w'\fBnewgrp\fR\ 'u
34 \fBnewgrp\fR [\-] [\fIgroup\fR]
35 .SH "OPIS"
36 .PP
37 The
38 \fBnewgrp\fR
39 command is used to change the current group ID during a login session\&. If the optional
40 \fB\-\fR
41 flag is given, the user\*(Aqs environment will be reinitialized as though the user had logged in, otherwise the current environment, including current working directory, remains unchanged\&.
42 .PP
43
44 \fBnewgrp\fR
45 changes the current real group ID to the named group, or to the default group listed in
46 /etc/passwd
47 if no group name is given\&.
48 \fBnewgrp\fR
49 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
50 /etc/shadow
51 if this user has an entry in the shadowed password file, or in
52 /etc/passwd
53 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\&.
54 .PP
55 If there is an entry for this group in
56 /etc/gshadow, then the list of members and the password of this group will be taken from this file, otherwise, the entry in
57 /etc/group
58 is considered\&.
59 .SH "CONFIGURATION"
60 .PP
61 The following configuration variables in
62 /etc/login\&.defs
63 change the behavior of this tool:
64 .PP
65 \fBSYSLOG_SG_ENAB\fR (boolean)
66 .RS 4
67 Enable "syslog" logging of
68 \fBsg\fR
69 activity\&.
70 .RE
71 .SH "PLIKI"
72 .PP
73 /etc/passwd
74 .RS 4
75 Informacja o kontach użytkownik\('ow\&.
76 .RE
77 .PP
78 /etc/shadow
79 .RS 4
80 Informacje chronione o użytkownikach\&.
81 .RE
82 .PP
83 /etc/group
84 .RS 4
85 Informacje o grupach użytkownik\('ow\&.
86 .RE
87 .PP
88 /etc/gshadow
89 .RS 4
90 Informacje chronione o grupach użytkownik\('ow\&.
91 .RE
92 .SH "ZOBACZ TAKŻE"
93 .PP
94
95 \fBid\fR(1),
96 \fBlogin\fR(1),
97 \fBsu\fR(1),
98 \fBsg\fR(1),
99 \fBgpasswd\fR(1),
100 \fBgroup\fR(5), \fBgshadow\fR(5)\&.