Visit Our UNIX and Linux User Community


login history log file?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers login history log file?
# 1  
Old 10-29-2002
login history log file?

hi,

i am the administrator of my sun solaris 8 server. i want to keep a log file for users who have login.

example: in the end of the day, i want to open file that tells me during these days, what user, from which IP address, and from what time to time has login.

please tell me how should i do it.

thank you very much and have a nice day.
# 2  
Old 10-30-2002
Not sure if this is what you are after, but there is a command called last they might be of use.

Basically run
last | more


this will show you who has logged onto the system, which IP they have logged in from, what time and date they logged in and whether or not they are still currently logged into the system.


Mark
# 3  
Old 10-30-2002
Another option is "who /var/adm/wtmp".
# 4  
Old 10-30-2002
who /var/adm/wtmp

besides who command used on wtmp, what other commands can we used?

tried to look into man wtmp, but either i dont understand or it did not mentioned...

thanks
yls177
# 5  
Old 10-31-2002
Quote:
Originally posted by yls177
besides who command used on wtmp, what other commands can we used?
The only other command that I have ever used on wtmp is fwtmp. I *think* that a few other accounting programs can do something with this file.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #733
Difficulty: Medium
AmigaBASIC is a complied BASIC programming language implementation for the Amiga, designed and written by Microsoft.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to make each login shell history independent for same account?

Hello All, Many developers in our company use same application account to log in Linux Box for code development, how can i redirect my log in shell history to a different file to avoid history being shown to others or accidentally execute the same command which i or others executed? Thank you. (4 Replies)
Discussion started by: Ariean
4 Replies

2. Programming

How to Get Login time history in PHP?

Hi, Need a perfect user data base solution for my ecommerce website. I want to track whole activity of my end user until the user logout Thanks in Advance (1 Reply)
Discussion started by: AimyThomas
1 Replies

3. UNIX for Dummies Questions & Answers

History to Another file [local user history , but root access]

Hi all, My need is : 1. To know who , when , which command used. 2. Local user should not delete this information. I mean , with an example , i can say i have a user user1 i need to give all the following permissions to user1, : a. A specific directory other than his home... (1 Reply)
Discussion started by: sriky86
1 Replies

4. UNIX for Advanced & Expert Users

History to Another file [local user history , but root access]

Hi all, My need is : 1. To know who , when , which command used. 2. Local user should not delete this information. I mean , with an example , i can say i have a user user1 i need to give all the following permissions to user1, : a. A specific directory other than his home... (3 Replies)
Discussion started by: linuxadmin
3 Replies

5. UNIX for Dummies Questions & Answers

PID with a log/history perspective.

Hi All, Belated Merry Christmas. I have a requirement, where I need to know the entire history of all the pids, the time they got forked, when they ended and by which program. I had delved into contents of /var/log/messages, but of not much use, as it mainly houses xinetd and ntp pid... (2 Replies)
Discussion started by: dipanchandra
2 Replies

6. Shell Programming and Scripting

FTP script to login and list files to log file

Hi Guys I did a forum search for "ftp scripts" Looked at 8 pages and didnt see anything that would help. Most seem to be logging into a ftp server and transfering files. What I need to do is login to a FTP server. Goto a folder and list it so it showes newest files first. It would be nice to... (4 Replies)
Discussion started by: voorhees1979
4 Replies

7. SuSE

Linux SuSE 10 - Disable Unsuccessful Login History.

When we login to any remote connections in SuSE Linux, say for example, telnet , the following line is displayed "Last Login : Date and time is displayed" I would like to disable this. In SuSE 9, I could find the solution . Please suggest me a solution to disable the line displayed for SuSE... (3 Replies)
Discussion started by: Laksmi
3 Replies

8. UNIX for Dummies Questions & Answers

User History and commnad log

Dear All I had a UNIX ( Sun solaris ) os. There are many user on that server. Now i want to find during last week who had log in to the sever and which commnad are executed by them? I also want to from which IP they had log in to the server. Is there any log file generated for user in... (5 Replies)
Discussion started by: jaydeep_sadaria
5 Replies

9. AIX

history log

is there's a way i can capture my senior administrator history on aix? he make his history (sh_history) to another owner (not his own) so that his history will not be captured. is there's a global history of some kind in aix that i could look into. thanks, vene (3 Replies)
Discussion started by: venerayan
3 Replies

10. UNIX for Dummies Questions & Answers

??? Log file users login and logout..???

hi all... only one question.... what is the file...where show me records login and logout of the unix user's..?? thank you.... I waiting for response... (1 Reply)
Discussion started by: chanfle
1 Replies

Featured Tech Videos