Quantcast
Channel: Oracle MVA » Linux
Viewing all articles
Browse latest Browse all 9

Group existence

$
0
0

Usually I work on Linux and I love it. For some sort of reason it just took me an hour to find out if a group existed and what the gid was (ldap was configured). Therefore I make this not to myself: getent is cool!

The easiest way I found to check for group existence is:

$ getent group dba
dba:x:4006:

And, other way around, if you have the gid here’s how you find the group name :

$ getent group 4006
dba:x:4006:

</end reminder>



Viewing all articles
Browse latest Browse all 9

Trending Articles