Skip to content

Instantly share code, notes, and snippets.

@swalberg
Last active August 29, 2015 13:57
Show Gist options
  • Save swalberg/9765383 to your computer and use it in GitHub Desktop.
Save swalberg/9765383 to your computer and use it in GitHub Desktop.
# perl test.pl | more
Name = root
UID = 0
Comment =
Gcos = root
HOME DIR = /root
Name = root
UID = 0
Comment =
Gcos = Super-User
HOME DIR = /
[root@ tmp]# ohai etc | egrep -A3 -B 1 '^ "root": {'
"passwd": {
"root": {
"dir": "/",
"gid": 0,
"uid": 0,
--
"group": {
"root": {
"gid": 0,
"members": [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment