Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / sv / sg.1
1 '\" t
2 .\"     Title: sg
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: 16-02-2011
6 .\"    Manual: Anv\(:andarkommandon
7 .\"    Source: Anv\(:andarkommandon
8 .\"  Language: Swedish
9 .\"
10 .TH "SG" "1" "16-02-2011" "Anv\(:andarkommandon" "Anv\(:andarkommandon"
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 "NAMN"
31 sg \- k\(:or kommando med annat grupp\-id
32 .SH "SYNOPSIS"
33 .HP \w'\fBsg\fR\ 'u
34 \fBsg\fR [\-] [grupp\ [\-c]\ kommando]
35 .SH "BESKRIVNING"
36 .PP
37 The
38 \fBsg\fR
39 command works similar to
40 \fBnewgrp\fR
41 but accepts a command\&. The command will be executed with the
42 /bin/sh
43 shell\&. With most shells you may run
44 \fBsg\fR
45 from, you need to enclose multi\-word commands in quotes\&. Another difference between
46 \fBnewgrp\fR
47 and
48 \fBsg\fR
49 is that some shells treat
50 \fBnewgrp\fR
51 specially, replacing themselves with a new instance of a shell that
52 \fBnewgrp\fR
53 creates\&. This doesn\*(Aqt happen with
54 \fBsg\fR, so upon exit from a
55 \fBsg\fR
56 command you are returned to your previous group ID\&.
57 .SH "CONFIGURATION"
58 .PP
59 The following configuration variables in
60 /etc/login\&.defs
61 change the behavior of this tool:
62 .PP
63 \fBSYSLOG_SG_ENAB\fR (boolean)
64 .RS 4
65 Enable "syslog" logging of
66 \fBsg\fR
67 activity\&.
68 .RE
69 .SH "FILER"
70 .PP
71 /etc/passwd
72 .RS 4
73 Anv\(:andarkontoinformation\&.
74 .RE
75 .PP
76 /etc/shadow
77 .RS 4
78 S\(:aker anv\(:andarkontoinformation\&.
79 .RE
80 .PP
81 /etc/group
82 .RS 4
83 Gruppkontoinformation\&.
84 .RE
85 .PP
86 /etc/gshadow
87 .RS 4
88 S\(:aker gruppkontoinformation\&.
89 .RE
90 .SH "SE OCKS\(oA"
91 .PP
92
93 \fBid\fR(1),
94 \fBlogin\fR(1),
95 \fBnewgrp\fR(1),
96 \fBsu\fR(1),
97 \fBgpasswd\fR(1),
98 \fBgroup\fR(5), \fBgshadow\fR(5)\&.