On Wed Aug 19 15:38:18 2015,
https://me.yahoo.com/howdidwegetherereally#f714d wrote:
Show quoted text> On Thu Aug 13 02:17:11 2015, REHSACK wrote:
> > The test shall prove whether home directories of other users can be
> > determined. With above bad facts in mind, how about a loop over pwent
> > and skip for every user where !pw_dir or !-d pw_dir?
>
> This would enumerate the AD or NIS if the machine is a domain member.
> I'm not sure this is something desirable.
Unlikely ;)
Show quoted text> Using the "root" user was
> meant to provide a username that exists and has a home directory.
> That assumption turns out to be wrong and I can't think of any other
> user name that could be guaranteed to meet these two conditions.
Scanning some /etc/passwd's I agree - beside root I don't see much
valueable widely which would be available ...
Show quoted text> I can always provide another username than the one that runs the test
> that is good for the tests, but it would typically be specific to the
> system I'm testing on. How about making this configurable and
> providing some sane defaults based on the system type?
I think this is a sane approach, and to disable that for someone's
weird cygwin/darwin, set the username knob to an empty value or so.