|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] check for existing user
|
> What would be the easiest way to check for an existing user with a shell
> script? So that if it does exist i can do one thing, and if it doesn't i
> can do another?
Grep the /etc/passwd file? Does grep give a return value?
Bill
--
"Because they know that all they sold you was a guaranteed POS! Look, if
you want me to take a dump in a box and mark it 'guaranteed', I will. I got
spare time."
-Chris Farley (on Microsoft?), _Tommy Boy_
______________________________________________________________________
Philadelphia Linux Users Group - http://plug.nothinbut.net
Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce
General Discussion - http://lists.nothinbut.net/mail/listinfo/plug
|
|