SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from OpenSuSE shadow-4.6-lp151.2.3.2.x86_64.rpm

SG

Section: User Commands (1)
Updated: 04/29/2018
Index 

NAME

sg - execute command as different group ID 

SYNOPSIS

sg [-] [group [-c ] command]
 

DESCRIPTION

Thesgcommand works similar tonewgrpbut accepts a command. The command will be executed with the/bin/shshell. With most shells you may runsgfrom, you need to enclose multi-word commands in quotes. Another difference betweennewgrpandsgis that some shells treatnewgrpspecially, replacing themselves with a new instance of a shell thatnewgrpcreates. This doesn't happen withsg, so upon exit from asgcommand you are returned to your previous group ID. 

CONFIGURATION

The following configuration variables in/etc/login.defschange the behavior of this tool:

SYSLOG_SG_ENAB (boolean)

Enable "syslog" logging ofsgactivity.
 

FILES

/etc/passwd

User account information.

/etc/shadow

Secure user account information.

/etc/group

Group account information.

/etc/gshadow

Secure group account information.
 

SEE ALSO

id(1),login(1),newgrp(1),su(1),gpasswd(1),group(5), gshadow(5).


 

Index

NAME
SYNOPSIS
DESCRIPTION
CONFIGURATION
FILES
SEE ALSO

This document was created byman2html,using the manual pages.