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.";
In reply to Re: how to use /etc/passwd with perl programs
by sauoq
in thread how to use /etc/passwd with perl programs
by atnonis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |