View Single Post

   
  #1 (permalink)  
Old 01-05-2008, 10:06 AM
degeneration32@hotmail.com
 
Posts: n/a
Default Accessing /etc/security/user attributes

Hi everyone,

I'm kinda new to the Unix world, so there may be an obvious answer to
this question but I just haven't been able to find it.

I'm writing a script in perl that will find users in /etc/security/user
that have "account_locked=true" or "login=false".

My question is: is there a function, module, command, anything that
will do this easily; just put the username (and desired attributes) as
an argument and it will bring back results? So I don't have to mess
with a bunch of metacharacters searching through each username's
attributes.

Any help would be appreciated, thank you!


Joe

Reply With Quote