|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
|
Inactif
Inscription : décembre 2004 Messages : 152 ![]() |
Bonjour,
Dans le fichier /etc/passwd , comment afficher la ligne qui contient un GID (groupe ID) egale a 0 |
|
|
00
|
|
|
#2 | |
|
Membre confirmé
![]() Inscription : avril 2005 Messages : 200 ![]() |
Citation:
|
|
|
|
00
|
|
|
#3 |
|
Inactif
Inscription : décembre 2004 Messages : 152 ![]() |
On utilisant les commandes grep et cut .
|
|
|
00
|
|
|
#4 | ||
|
Inactif
Inscription : décembre 2004 Messages : 152 ![]() |
Citation:
|
||
|
|
00
|
|
|
#5 |
![]() ![]() Michaël TodorovicIngénieur systèmes et réseaux Inscription : juillet 2003 Messages : 3 493 ![]() |
la commande marche bien sous debian en tout cas. sinon, le :0:0:, c'est pour être sur d'avoir la bonne ligne.
__________________
- Installation et configuration de Exchange 2010 new! - Installation d'Office Communications Server (OCS) 2007 R2 Standard - Présentation de Microsoft Online Services - Installation d'Active Directory sous Windows Server 2008 R2 - Mon blog sur Windows Server, Exchange, OCS et AD | Mes articles |
|
00
|
|
|
#6 |
|
Inactif
Inscription : décembre 2004 Messages : 152 ![]() |
Je veux afficher tous les lignes qui contient un GID egale a 0 et non un UID et GID egale a 0 (le UID ne m'interrese pas)
|
|
|
00
|
|
|
#7 | ||
![]() ![]() Michaël TodorovicIngénieur systèmes et réseaux Inscription : juillet 2003 Messages : 3 493 ![]() |
je pense qu'avec cette ligne tu devrais avoir la bonne chosetu ne peux pas avoir deux uid égaux à 0 donc on aura jamais
Code :
__________________
- Installation et configuration de Exchange 2010 new! - Installation d'Office Communications Server (OCS) 2007 R2 Standard - Présentation de Microsoft Online Services - Installation d'Active Directory sous Windows Server 2008 R2 - Mon blog sur Windows Server, Exchange, OCS et AD | Mes articles |
||
|
00
|
|
|
#8 | ||
|
Inactif
Inscription : décembre 2004 Messages : 152 ![]() |
J'ai trouver la solution :
Code :
|
||
|
|
00
|
Copyright © 2000-2012 - www.developpez.com