'\" t .\" Title: sg .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.75.1 .\" Date: 07/24/2009 .\" Manual: Polecenia użytkownik\('ow .\" Source: Polecenia użytkownik\('ow .\" Language: Polish .\" .TH "SG" "1" "07/24/2009" "Polecenia użytkownik\('ow" "Polecenia użytkownik\('ow" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAZWA" sg \- execute command as different group ID .SH "SK\(/LADNIA" .HP \w'\fBsg\fR\ 'u \fBsg\fR [\-] [group\ [\-c]\ command] .SH "OPIS" .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\'t happen with \fBsg\fR, so upon exit from a \fBsg\fR command you are returned to your previous group ID\&. .SH "CONFIGURATION" .PP The following configuration variables in /etc/login\&.defs change the behavior of this tool: .PP \fBSYSLOG_SG_ENAB\fR (boolean) .RS 4 Enable "syslog" logging of \fBsg\fR activity\&. .RE .SH "PLIKI" .PP /etc/passwd .RS 4 Informacja o kontach użytkownik\('ow\&. .RE .PP /etc/shadow .RS 4 Informacje chronione o użytkownikach\&. .RE .PP /etc/group .RS 4 Informacje o grupach użytkownik\('ow\&. .RE .PP /etc/gshadow .RS 4 Informacje chronione o grupach użytkownik\('ow\&. .RE .SH "ZOBACZ TAKŻE" .PP \fBid\fR(1), \fBlogin\fR(1), \fBnewgrp\fR(1), \fBsu\fR(1), \fBgpasswd\fR(1), \fBgroup\fR(5), \fBgshadow\fR(5)\&.