08-06-2007
Hi Awadhesh,
Unfortunately, this is not what I am really looking for. I've already set this up on the boxes I have. What I really want is the "Unsuccessful Login" the same way a "Successful Login" is showed when a user login to the system.
SunOS 5.8
login:
Password:
Last login: Tue Aug 7 10:18:39 from 192.168.81.19
$
I recall during my days when using AIX/HP or SCO UNIX, the latest unsuccessful login attempt is shown as the user login to the system.
10 More Discussions You Might Find Interesting
1. AIX
Hello, we had a situation where an account was locked out due to too many failed login attempts. From the logs (failedlogin, etc) it appears that AIX 'remembered' the failed login attempts from the past month or so. does anyone know where this is set, or how long it will remember the number of... (2 Replies)
Discussion started by: zuessh
2 Replies
2. Solaris
hi, can someone tell me " how to reset failed login in solaris 8.0"
a user is not able to login and inspite of my changing password cannot.
I believe it must be because the user tried many attempts.
how do i reset the failed login for the user.
Thanks!
karthik (2 Replies)
Discussion started by: karthikosu
2 Replies
3. Solaris
Hi guys, Can you please help me.
I have SUN V100 server running solaris 8.
I also have a Redhat Linux 6.2 machine and a windows XP machine on the network.
I'm trying to copy files from the Linux and XP machines to the V100 server.
When I try to ftp to the solaris machine, I'm challenged... (2 Replies)
Discussion started by: Stin
2 Replies
4. Solaris
Dears,
i am trying to recording failed login
this is the steps which i do:-
1) touch /var/adm/logilog
2) chown root:sys /var/adm/loginlog
3) chmod 600 /var/adm/loginlog
ls -l /var/adm/loginlog
-rw------- 1 root sys 0 Jul 21 03:52 /var/adm/loginlog
4) change this value in... (3 Replies)
Discussion started by: hosney00ux
3 Replies
5. Windows & DOS: Issues & Discussions
I have an application (EXE file) in a Windows 2003 server. Through a DOS batch script, I called that application file using UNC path and working fine when locally login. But got failed when I tried the same batch script on remote login. The login id has been provided all the below rights:
- Log on... (0 Replies)
Discussion started by: r_sethu
0 Replies
6. Solaris
Holla!
Sorry to spam the board with all my Solaris 2.6 questions (I just found this forum). My most recent problem is that not ALL failed log-ins are getting logged in /var/log/authlog. It seems to work fine for the "su" command from a non-root user, but the actual "login" command or a desktop... (4 Replies)
Discussion started by: rrossorr
4 Replies
7. Solaris
Dear Unix Team,
This is sudhansu once again. I need some tips on below issue.
Sometimes we got calls from customer that their console got hangged means they are not able to access the server through console ip.
in that case "resetsc -y" will resolve the issue.
2. But couple of days... (2 Replies)
Discussion started by: sudhansu
2 Replies
8. AIX
What's actually the difference between these two command:
1) chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s username
2) chuser unsuccessful_login_count=0 username
Are there any impact on executing either one of those command to clear/reset the failed login count in AIX?... (2 Replies)
Discussion started by: ph4nt0m227
2 Replies
9. Solaris
Hi,
Can someone tell me the command to do this in solaris 5.10 please? I've trawled around the internet for ages but all I can find is the AIX command...
Thanks (2 Replies)
Discussion started by: Grueben
2 Replies
10. Red Hat
When i finished installation the Redhat Enterprise Linux 6.2, and login to the system, I can't login although username: root and Password correct. I install on the Hp Blade Server. I don't know why.
How to fix this error? who can help me? :confused:
Thanks! (3 Replies)
Discussion started by: dinhdangnd
3 Replies
LEARN ABOUT OPENDARWIN
setlogin
GETLOGIN(2) BSD System Calls Manual GETLOGIN(2)
NAME
getlogin, setlogin -- get/set login name
SYNOPSIS
#include <unistd.h>
char *
getlogin(void);
int
setlogin(const char *name);
DESCRIPTION
The getlogin() routine returns the login name of the user associated with the current session, as previously set by setlogin(). The name is
normally associated with a login shell at the time a session is created, and is inherited by all processes descended from the login shell.
(This is true even if some of those processes assume another user ID, for example when su(1) is used.)
Setlogin() sets the login name of the user associated with the current session to name. This call is restricted to the super-user, and is
normally used only when a new session is being created on behalf of the named user (for example, at login time, or when a remote shell is
invoked).
RETURN VALUES
If a call to getlogin() succeeds, it returns a pointer to a null-terminated string in a static buffer. If the name has not been set, it
returns NULL. If a call to setlogin() succeeds, a value of 0 is returned. If setlogin() fails, a value of -1 is returned and an error code
is placed in the global location errno.
ERRORS
The following errors may be returned by these calls:
[EFAULT] The name parameter gave an invalid address.
[EINVAL] The name parameter pointed to a string that was too long. Login names are limited to MAXLOGNAME (from <sys/param.h>)
characters, currently 12.
[EPERM] The caller tried to set the login name and was not the super-user.
SEE ALSO
setsid(2)
BUGS
Login names are limited in length by setlogin(). However, lower limits are placed on login names elsewhere in the system (UT_NAMESIZE in
<utmp.h>).
In earlier versions of the system, getlogin() failed unless the process was associated with a login terminal. The current implementation
(using setlogin()) allows getlogin to succeed even when the process has no controlling terminal. In earlier versions of the system, the
value returned by getlogin() could not be trusted without checking the user ID. Portable programs should probably still make this check.
HISTORY
The getlogin() function first appeared in 4.4BSD.
4.2 Berkeley Distribution June 9, 1993 4.2 Berkeley Distribution