vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| degeneration32@hotmail.com wrote: > 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; man lssec man lsuser just from memory Hajo |
| ||||
| Hajo Ehlers wrote: > degeneration32@hotmail.com wrote: > > 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; > > man lssec > man lsuser > > just from memory > Hajo Thanks a lot, lssec seems to be what I was looking for. |