Method: Inspec::Resources::FreeBSDUser#meta_info
- Defined in:
- lib/resources/users.rb
#meta_info(username) ⇒ Object
537 538 539 540 541 542 543 544 545 546 |
# File 'lib/resources/users.rb', line 537 def (username) cmd = inspec.command("pw usershow #{username} -7") return nil if cmd.exit_status != 0 # returns: root:*:0:0:Charlie &:/root:/bin/csh passwd = parse_passwd_line(cmd.stdout.chomp) { home: passwd['home'], shell: passwd['shell'], } end |