pam_timestamp_check(8) System Administrator's Manual pam_timestamp_check(8)NAME
pam_timestamp_check - check or clear authentication timestamps
SYNOPSIS
pam_timestamp [[-d]|[-k]] [target_user]
DESCRIPTION
With no arguments, pam_timestamp_check will check to see if the default timestamp is valid, or optionally remove it.
OPTIONS -k instead of checking the validity of a timestamp, remove it. This is analogous to sudo's -k option.
-d Instead of returning validity using an exit status, loop indefinitely, polling regularly and printing the status on standard output.
target_user
The default behavior of pam_timestamp_check checks or removes timestamps generated by pam_timestamp when the user authenticates as
herself. When the user authenticates as a different user, the name of the timestamp file changes to accomodate this.
DIAGNOSTICS
When checking if a timestamp is valid, pam_timestamp_check returns an exit code of 0 for success and > 0 on error:
2: binary is not setuid-root
3: invalid invocation
4: user unknown
5: permissions error
6: invalid controlling tty
7: other error
SEE ALSO pam_timestamp(8)BUGS
Let's hope not, but if you find any, please email the author.
AUTHOR
Nalin Dahyabhai <nalin@redhat.com>
Red Hat Linux 2002/05/23 pam_timestamp_check(8)
Check Out this Related Man Page
PAM-PANEL-ICON(1) General Commands Manual PAM-PANEL-ICON(1)NAME
pam-panel-icon - A notification area indicator of pam_timestamp status
SYNOPSIS
pam-panel-icon
DESCRIPTION
pam-panel-icon should be automatically started when starting an X11 desktop environment. For example, in GNOME gnome-session should be
configured to start pam-panel-icon. In a properly configured system it should never be necessary to start pam-panel-icon manually.
pam-panel-icon uses pam_timestamp_check(8) to watch the pam_timestamp timestamp status. If the pam_timestamp authorization is active,
allowing an unprivileted user to temporarily authenticate as the root user without providing a password, an icon in the notification area
of the panel is displayed. The icon allows dropping the authorization immediately.
EXIT STATUS
Ordinarily, pam-panel-icon keeps running until the X11 desktop session ends, and then returns 0. pam-panel-icon only returns with non-zero
status on unexpected error.
FILES
/sbin/pam_timestamp_check
A hard-coded location of the pam_timestamp_check executable.
SEE ALSO pam_timestamp(8), pam_timestamp_check(8)Red Hat 2009-10-05 PAM-PANEL-ICON(1)
I'm writting a script to find the difference between two timestamp. One field i get on delivery time of the file like 07:17 AM and other is my SLA time 06:30 AM
I need to find the difference between these two time (time exceeded to meet SLA). Need some suggestions. (8 Replies)
I have a health check script homed in /u/ainet/scripts
I need to check the time stamp on a file in /opt/config/log/
The file is called Backupdisk.out
I want write the same info that you get when you do a ls -l into a file
This is what I have been trying:
cd /opt/config/log/
ls -l | awk... (2 Replies)
Hi,
I need to do a script that find a specific data in var_5 and also the previous timestamp. This is the file I have:
var_1=data1
var_2=data2
var_3=data3
var_4=data4
var_5=data5
var_6=data6
var_7=data7
RESULT
PRINTOUTS:
6404
var_1=data8
var_2=data9
var_3=data10
var_4=data11... (7 Replies)
There was this thread earlier with the same name and the solution provided was excellent. Here is the solution to find diffrenc between two timestamp
$ cat timestamp
#! /usr/bin/ksh
echo enter first time stamp
read TIME1
echo enter second time stamp
read TIME2
H1=${TIME1%:+()}... (3 Replies)
how to check the existance of a file in a directory?
how to get the timestamp of a file?
my os is hp-ux 11.1
based on the existance of the file i need to get the mail alert.
can any one help me? (3 Replies)
i have a requirement to compare two time stamps in IF condition and return true whenever the second timestamp is greater than first, i will also be checking, if the timestamp in HHMMSS format( 6 digit time stamp ).Im able to achieve it using awk, however i dont want to give any input file to awk... (3 Replies)
Hi,
i have current timestamp, lets say "12:02:45" in an variable (var1) and another timestamp "08:30:00" fetched from table in another variable2 (var2).
How do i compare 2 timestamps in unix shell scripting.
if var 1 > var 2 then echo message.
Thanks in advance. (3 Replies)
There are two columns on the data base table, create and update timestamps of datatype timestamp.
I dont have these fields on the csv file. So I am doing the below.
awk -F , -v d="$(date "+ %Y-%m-%d-%H.%M.%S")" '{ OFS=FS; print $1, $2, $3, $4, d, $5, $6, d }' temp.csv > temp1.csv
and then... (3 Replies)
I have the output of a process which on status change of the object being processed appends status,timestamp to the record in the text file...
so i end up with output something like:
task123,TERMINAL,glob,5,INITIAL,2012-02-27 16:48:07,PREPARING,2012-02-27 16:49:06,SCHEDULED,2012-02-27... (2 Replies)
How to validate the user supplied timestamp?
Ther requirement is as follows.
While invoking the script, the parameters passed to the script are minimum and maixmum timestamps.
let's say min_tstmp and max_tstmp
ksh abc.ksh 2011-09-01-00:00:00 2011-12-01-00:00:00
so... (3 Replies)
I need to be able to identify files with file timestamps greater than a given timestamp.
I am using the following solution, although it appears to compare files at the "seconds" granularity and I need it at the milliseconds. When I tested my solution, it missed files that had timestamps... (3 Replies)
Hi,
Need to grep for a error in a log file but between two timestamps / patterns
example: in the below log file if the given timestamps are 14:00 to 15:00
and m greping for error only error3 should come in the output.
pls note that apart from timestamps printed, the log file has no... (2 Replies)
Hi,
How to change the filenames with timestamp in sub folders
I have the following code to select the records.
find . -type f -name '*pqr*' -ctime 1 -print
The following is the example
app_root_dir="/`echo $ScriptDir | cut -d'/' -f2`"
$app_root_dir/../BadFiles directory
uvw.bad... (3 Replies)
Hi,
I have a list of files all starting with aa but some of them also have a timestamp suffixed which I want to remove from my search. For e.g.
aa1
aa2
aa.15-05-25_20:41:05.20150611
aa.15-05-26_20:29:40.20150611
aa.15-05-27_20:28:32.20150611
If I do ls -1 aa*, it will list everything... (7 Replies)
So I am writing a bash script that will search a file line by line for unix timestamps, store all of the timestamps into an array, then check how many of those timestamps were created within the last hour, and finally increment a counter every time it finds a timestamp created within the last hour.... (6 Replies)