in reply to how to use /etc/passwd with perl programs
Yes, it is possible. Read up on the getpwnam() and crypt() functions.
If your system uses shadow passwords, you will need the script to run with the proper privs. (And, even then there is a small chance you might have some trouble. Everything should be fine if the system is sane though.)
-sauoq "My two cents aren't worth a dime.";
|
|---|