SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from CentOS 7 shadow-utils-4.6-5.el7.x86_64.rpm

SG

Section: User Commands (1)
Updated: 09/08/2019
Index 

NAVN

sg - execute command as different group ID 

SYNOPSIS

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

BESKRIVELSE

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. 

KONFIGURATION

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

SYSLOG_SG_ENAB (boolean)

Enable "syslog" logging ofsgactivity.
 

FILER

/etc/passwd

Information om brugerkonto.

/etc/shadow

Information om sikret brugerkonto.

/etc/group

Information om gruppekonto.

/etc/gshadow

Information om sikret gruppekonto.
 

SE OGSoA

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


 

Index

NAVN
SYNOPSIS
BESKRIVELSE
KONFIGURATION
FILER
SE OGSoA

This document was created byman2html,using the manual pages.