Subject: | wrong warning for non root users |
If the module is used as root no warning occur:
root@o:/tmp/Passwd-Unix-Alt-0.5207# perl -e 'use lib "lib"; use
Passwd::Unix::Alt; my $p=Passwd::Unix::Alt->new;'
root@o:/tmp/Passwd-Unix-Alt-0.5207#
As non root user you get on the same system
perl -e 'use lib "lib"; use Passwd::Unix::Alt; my
$p=Passwd::Unix::Alt->new;'
Your ENVIRONMENT IS INSANE! Users in files "/etc/passwd" and
"/etc/shadow" are different!!!
only in passwd: root, daemon, bin, sys, [.. some names omitted ..]
I'll continue, but it is YOUR RISK! You'll probably go into BIG troubles!
at -e line 1
That seems a little strong and wrong. My environment is not insane.
In reality /etc/passwd and /etc/shadow are matching.
My guess: of course a non-root user can not see
shadow and the compare algorithm counts that as not existent.
Suggestion: a readability test and a message like
"WARNING: You are using /etc/passwd and /etc/shadow as non-root user,
and you have no read access to /etc/shadow. The integrity can not
be ensured. Using this software for above specifed files as non-root
user is most probably not what you want. You may consider different
files, changing the access rights or use this software as root."
Or something like this.
HTH
Christian