Perl has several built-in functions for accessing /etc/passwd on Unix systems (and elsewhere when supported) for user and group information. For instance,
my $name = getpwuid($uid);
will return the user name given the user ID, or undef if there is no such user.
If a Perl script needs to be portable and run on Unices and Windows, how ...
Is lckpwdf() and ulckpwdf() intended to be used only for apps directly accessing the shadow password file?
More precisely, my question is: If I call the usual API such as getspnam() or getspent(), should I be calling lckpwdf() first, or is that automatically done by getspnam(), etc...?
...
I'm very new to Unix, and currently taking a class learning the basics of the system and its commands.
I'm looking for a single command line to list off all of the user home directories in alphabetical order from the /etc/passwd directory. This applies only to the home directories, and not the contents within them. There should be no d...