2006-06-09, almo <almo6914@yahoo.comwrote:
[snip] If you use the wrong password, you get a
message "Login incorrect," and after 3 failed attempts, you're
locked out, although you don't know it. And, maybe you're a
hacker?? However, if on the 10th attempt, you get the password
correct, then the message changes to "Too many unsuccessful login
attempts" So, if you didn't know that user password to start
with, you know it now. What happens after that doesn't matter. But,
some people where I work would prefer it that the message did not
change to indicate that you had found the correct password. I work for
those people. Now, I grepped the dt folder and found the first message
"Login incorrect" in dtlogin. And, I opened the dtlogin binary with
a hex editor and could see that first message clearly. And, I found
somewhere else where it tells you to change your password the very
first time you use it. But I can't find which program gives the
message "too many unsuccessful attempts" It's probably not a dt
program doing it, but it is a dt program, such as dtfile_error being
sent a text string to display, but I can't find the culprit.
You're probably right about the message not originating
from CDE. If your message looks like this:
3004-303 There have been too many unsuccessful login attempts;
please see the system administrator.
it's the defaul AIX system message for an account locked
due to too many unsuccessful login attemps. You'll probably
get this message not only from CDE, but also from shell,
telnet and su logins (but not SSH).
To confirm take a look at the users security settings:
lsuser -f <username>
This should show something like this:
logintimes=
loginretries=2
unsuccessful_login_count=8
If the unsuccessful_login_count loginretries, you'll get
the 3004-303 error message. The unsuccessful_login_count can
btw. be reset with:
chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <username>
Having no AIX 4.3.3 at hand i can only tell you, that with
a recent version (5.3 ML6) i get the 3004-303 error message
with or without correct password, which is probably what
you want. Do some research if this was introduced in some
version >4.3.3 and update the system to that version. You
should do this anyway, since 4.3.3 is no longer supported
and there will be no more security fixes, which means your
above concerns should be your least
, course, AIX 4.3.3. doesn't have -r for grep, so I had to go to a linux
machine and grep the source code discwhatever. (I'm told it's the
entire source codewho knows) BTW, it's not plain old CDE, it's
been hacked for security reasons, or so I'm told.
I don't know what you mean by "source code disc", but i
seriously doubt that you have the CDE much less the AIX
source code available. Anyway, instead of 'grep -r' one
can always use a 'find ./ -type f | xargs grep <string>'
A good start to read up would be:
Regards,
Frank