newgrp
effettua l'accesso a un nuovo gruppo
1. newgrp.1.man
Manpage of NEWGRP
NEWGRP
Section: User Commands (1)Index Return to Main Contents
NOME
newgrp - effettua l'accesso a un nuovo grupposg - esegue un comando con un diverso ID di gruppo
SINTASSI
newgrp [-] [gruppo]sg [-] [gruppo [[-c] commndo]]
DESCRIZIONE
newgrp permette di cambiare il proprio ID di gruppo durante una sessione di login. Se viene specificato il flag -, l'ambiente dell'utente viene reinizializzato come se l'utente stesse effettuando il login, altrimenti l'ambiente non viene modificato e la directory corrente non viene cambiata.newgrp changes the current real group ID to the named group, or to the default group listed in /etc/passwd if no group name is given. newgrp also tries to add the group to the user groupset. If not root, the user will be prompted for a password if she do not have a password and the group does, or if the user is not listed as a member and the group has a password. The user will be denied access if the group password is empty and the user is not listed as a member. If compiled with SHADOWPWD (respectively SHADOWGRP) defined, the password of the user (respectively, the password and the members of the group) will be overwritten by the value defined in /etc/shadow (respectively in /etc/gshadow) if an entry exists for this user (resp. group).
Il comando sg funziona in maniera analoga a newgrp, ma accetta un comando che viene eseguito con la shell /bin/sh. La maggior parte delle shell che permettono l'uso di sg richiede che i comandi composti da più parole siano inclusi tra apici. Un'altra differenza tra newgrp e sg è che alcune shell trattano newgrp in maniera speciale, sostituendo se stesse con la shell creata da newgrp. Questo non accade con sg, per cui all'uscita del comando sg si ritorna al precedente ID di gruppo.
FILE
/etc/passwd - informazioni sugli account degli utenti/etc/shadow - informazioni sicure sugli account degli utenti
/etc/group - informazioni sugli account dei gruppi
/etc/gshadow - informazioni sicure sui gruppi
VEDERE ANCHE
id(1), login(1), su(1), gpasswd(1), group(5), gshadow(5)AUTORE
Julianne Frances Haugh <jockgrrl@ix.netcom.com>TRADUZIONE
Giuseppe Sacco <eppesuig@debian.org>, 2005 Danilo Piazzalunga <danilopiazza@libero.it>, 2005
Index
This document was created by man2html using the manual pages.
Time: 00:23:52 GMT, November 20, 2008


