AIX Syslog login/logout User


 
Thread Tools Search this Thread
Operating Systems AIX AIX Syslog login/logout User
# 1  
Old 05-14-2010
Question AIX Syslog login/logout User

Hi,
i'm trying to configure /etc/syslog.conf for log user access.
In debian i add:

auth,authpriv.* @serverName

I don't know the correct Aix syntax for syslog Smilie
My @serverName get the log successfully..
I need to log correct/incorrect login attempts.

Thanks
# 2  
Old 05-14-2010
You can use auth.debug in AIX.

Please see the detail in this link.

How to log user logins and su’s in a log file on AIX
This User Gave Thanks to plyl For This Post:
# 3  
Old 05-17-2010
Thanks for help Smilie.

I just try use auth.debug, but i log ONLY failed login(i need to log successful one):

out.log:
May 17 09:24:58 ServerName syslog: pts/1: failed login attempt for root from lanIp

My /etc/syslog.conf:
auth.debug /tmp/out.log rotate size 100k

My AIX version is 5.2.

Tnks,
Hank
# 4  
Old 05-17-2010
The information about successful logins/logouts is stored in "/var/adm/wtmp". You might want to consult the manpage of "last", which prints out reports of this file (and other files formatted the same way).

As a last resort (and if nothing better comes up) you could create a daemon based on this command and let this write to the SYSLOG facility.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 5  
Old 05-17-2010
Thanks Smilie
# 6  
Old 05-24-2010
Additional info to check failed login users:

# who -aH /etc/security/failedlogin | pg

Hope this helps.

Rgds,
Fadzli
Malaysia
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

User Account Login Login on your AIX server

I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs. I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies

2. UNIX for Dummies Questions & Answers

Capturing the login logout details of user

Hi I'm new to Shell scripting .Can anyone please help me how to capture user's login and logout details and load them into a table... we are using Oracle DB on UNIX:confused: (3 Replies)
Discussion started by: rajmohan146
3 Replies

3. OS X (Apple)

Login/Logout script

Dear readers I use SnowLeopard 10.6.2 and need to do some special tasks at login and logout of an sepcific user. My problem is, how do I send a string "login" respectively "logout" from computer "A", where the login/logout script runs, to computer "B" where some other tasks need to be done. ... (3 Replies)
Discussion started by: tthaler
3 Replies

4. AIX

user cannot login into AIX-6.1 server

Dear Friends , I got a problem In our AIX 6.1 server . When I start or restart the machine I cannot Login the server . It shows a dialog box and shows some comments , those are : >> The DT messaging system could not be started . To correct the problem : 1. Choose to return the login... (1 Reply)
Discussion started by: shipon_97
1 Replies

5. AIX

Normal User Unable to Login Through AIX CDE

When we as normal user try to login, the session startup terminates and we are presented with the login screen.The root user is able to login without any problem.I can log in to the Aix server as normal user through telnet & using xmanager but not directly through server terminal .The Aix version... (1 Reply)
Discussion started by: ranadeep
1 Replies

6. UNIX for Dummies Questions & Answers

setup a logfile for user login/logout ???

Hi everybody, im a newer, i want to setup a logfile to capture information about user login/logout (and some other events ex: a user ftp, run a speacial command) on my system in HP-UX, pls help me. i think only edit file /etc/syslog.conf but i dont know how to do it. Help me. (3 Replies)
Discussion started by: pwd
3 Replies

7. HP-UX

setup a logfile for user login/logout ???

Hi everybody, im a newer, i want to setup a logfile to capture information about user login/logout (and some other events ex: a user ftp, run a speacial command) on my system in HP-UX, pls help me. i think only edit file /etc/syslog.conf but dont know how to do it. Help me. (0 Replies)
Discussion started by: pwd
0 Replies

8. AIX

AIX; Auto clearing of 'too many invalid login attempts by user'

Does anyone have a good script / cron job that handles this? I have looked in smit and see it is clearing this count with: chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s '{userid}' However when I looked around to find ways to automate this I have not found an easy... (0 Replies)
Discussion started by: Keith Johnson
0 Replies

9. Shell Programming and Scripting

detecting login or logout

what function would tell me that a user has logged in or out? i already know from my script the users name i already know in real time there was an event how an I tell if that event was a login or logout? Any ideas? # i did try comparing the file sizes for change but various users may... (8 Replies)
Discussion started by: nortypig
8 Replies

10. UNIX for Dummies Questions & Answers

Login and logout script

Hi all I know ho I can run a script when a user logs in, viz using the .login or .profile file, however what can I use to run a script when a user logouts ? Thanks J :confused: (1 Reply)
Discussion started by: jhansrod
1 Replies
Login or Register to Ask a Question