in reply to using Unix::PasswdFile to change either the password or the shell of a user

The builtins setpwent, setgrent, and friends know about shadow files and can deal with them. No module is needed.

After Compline,
Zaxo

  • Comment on Re: using Unix::PasswdFile to change either the password or the shell of a user

Replies are listed 'Best First'.
Re^2: using Unix::PasswdFile to change either the password or the shell of a user
by sgifford (Prior) on Jul 30, 2006 at 16:55 UTC
    Are you sure? That's not what the documentation says they do:
    setpwent: These routines perform the same functions as their counterparts in the system library.
    And getpwent(3) says:
    The setpwent() function rewinds the file pointer to the beginning of the /etc/passwd file.