10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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. Shell Programming and Scripting
HTML Code:
archive_history() { HISTORYOLD=${HISTFILE}.archive CURTIME=`date` CURTTY=`tty` IP=$(echo $SSH_CLIENT | awk '{print $1}') if ; then echo "#-${HOSTNAME}-- ${CURBASHDATE} - ${CURTIME} ($CURTTY) ${USER} ${IP}----" >> $HISTORYOLD history... (0 Replies)
Discussion started by: rehantayyab82
0 Replies
3. Shell Programming and Scripting
HTML Code
archive_history() { HISTORYOLD=${HISTFILE}.archive CURTIME=`date` CURTTY=`tty` IP=$(echo $SSH_CLIENT | awk '{print $1}') if ; then echo "#-${HOSTNAME}-- ${CURBASHDATE} - ${CURTIME} ($CURTTY) ${USER} ${IP}----" >> $HISTORYOLD history... (2 Replies)
Discussion started by: rehantayyab82
2 Replies
4. Shell Programming and Scripting
Hi - Can anyone help me to get the shell script for the below scenario
I need to find out the time stamps history for the files residing within the subfolders. Ex..
Let say I got directory structure like
/home/project1/ -- Fixed directory
Now within the project there are many... (1 Reply)
Discussion started by: pankaj80
1 Replies
5. UNIX for Dummies Questions & Answers
How do I get the last login time of a particular user?:confused: (1 Reply)
Discussion started by: g.ashok
1 Replies
6. Solaris
On Solaris 8 and 10 is there a way history command can show what time a particular command was executed.
Pls reply.
Thanks (2 Replies)
Discussion started by: Tirmazi
2 Replies
7. SuSE
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. Shell Programming and Scripting
Hi,
Can we display the Date/time stamp in history command
Ex:
$history
output
-----------
vi pr.sh
ksh -x pr.sh
ksh -n pr.sh
nhoup ksh pr.sh &
nohup ksh pr.sh &
i want the output like this
Tue Mar 14 17:18:57 GMT 2006 vi pr.sh HOSTNAME
is it possible sir ???? (3 Replies)
Discussion started by: vastare
3 Replies
9. AIX
When assigning a new password using passwd the first time the user signs in they are forced to enter a new one. I am currently setting up over 100 users on a new system for a new application the uses a gui front end to access it. Because of this they never see the unex prompt so when they login... (5 Replies)
Discussion started by: jyoung
5 Replies
10. UNIX for Dummies Questions & Answers
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... (4 Replies)
Discussion started by: champion
4 Replies
utmp(4) Kernel Interfaces Manual utmp(4)
NAME
utmp, wtmp - Login records
SYNOPSIS
#include <utmp.h>
DESCRIPTION
The utmp file records information about who is currently using the system. The file is a sequence of utmp entries, as defined in struct
utmp in the utmp.h file.
The utmp structure gives the name of the special file associated with the user's terminal, the user's login name, and the time of the login
in the form of time(3). The ut_type field is the type of entry, which can specify several symbolic constant values. The symbolic constants
are defined in the utmp.h file.
The wtmp file records all logins and logouts. A null user name indicates a logout on the associated terminal. A terminal referenced with
a tilde (~) indicates that the system was rebooted at the indicated time. The adjacent pair of entries with terminal names referenced by a
vertical bar (|) or a right brace (}) indicate the system-maintained time just before and just after a date command has changed the sys-
tem's time frame.
The wtmp file is maintained by login(1) and init(8). Neither of these programs creates the file, so, if it is removed, record keeping is
turned off. See ac(8) for information on the file.
FILES
RELATED INFORMATION
ac(8), init(8), last(8), lastcomm(8), login(1), who(1), wtmpconvert(8). delim off
utmp(4)