'\" t .\" Title: sg .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 12/02/2012 .\" Manual: User Commands .\" Source: shadow-utils 4.1.5 .\" Language: Danish .\" .TH "SG" "1" "12/02/2012" "shadow\-utils 4\&.1\&.5" "User Commands" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAVN" sg \- execute command as different group ID .SH "SYNOPSIS" .HP \w'\fBsg\fR\ 'u \fBsg\fR [\-] [group\ [\-c\ ]\ command] .SH "BESKRIVELSE" .PP The \fBsg\fR command works similar to \fBnewgrp\fR but accepts a command\&. The command will be executed with the /bin/sh shell\&. With most shells you may run \fBsg\fR from, you need to enclose multi\-word commands in quotes\&. Another difference between \fBnewgrp\fR and \fBsg\fR is that some shells treat \fBnewgrp\fR specially, replacing themselves with a new instance of a shell that \fBnewgrp\fR creates\&. This doesn\*(Aqt happen with \fBsg\fR, so upon exit from a \fBsg\fR command you are returned to your previous group ID\&. .SH "KONFIGURATION" .PP De f\(/olgende konfigurationsvariabler i /etc/login\&.defs \(aendrer opf\(/orelsen for dette v\(aerkt\(/oj: .PP \fBSYSLOG_SG_ENAB\fR (boolean) .RS 4 Enable "syslog" logging of \fBsg\fR activity\&. .RE .SH "FILER" .PP /etc/passwd .RS 4 Information om brugerkonto\&. .RE .PP /etc/shadow .RS 4 Information om sikret brugerkonto\&. .RE .PP /etc/group .RS 4 Information om gruppekonto\&. .RE .PP /etc/gshadow .RS 4 Information om sikret gruppekonto\&. .RE .SH "SE OGS\(oA" .PP \fBid\fR(1), \fBlogin\fR(1), \fBnewgrp\fR(1), \fBsu\fR(1), \fBgpasswd\fR(1), \fBgroup\fR(5), \fBgshadow\fR(5)\&.