09-16-2011
Some systems have an empty file called $HOME/.lastlogin that is "touched" each time the user logs in.
This User Gave Thanks to jgt For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have found a script to create user accounts. But there are a few lines i dont understand. Can someone help me with this? Here's the code:
######################################
while ;
do
ACCT=${USER_ACCT}${START}
START=`expr $START + 1`
START=`echo ${START} | awk... (3 Replies)
Discussion started by: Sensor
3 Replies
2. Shell Programming and Scripting
Hi,
I need to count the number of times a script is accessed from within the script. Is it possible ?
Example: I have a script called lo.sh and i execute the script for the first time, then the counter variable declared inside the lo.sh should increment by 1. For every execution the... (1 Reply)
Discussion started by: pathanjalireddy
1 Replies
3. Shell Programming and Scripting
How To Find The Number Of Programs That A User Running ON A GIVEN TERMINAL (4 Replies)
Discussion started by: venkata.ganesh
4 Replies
4. UNIX for Dummies Questions & Answers
hello ppl, someone must be able to help with this --> I have an old NCR tower 32 with an ADDS terminal running a unix version 020102 (Im not sure if thats correct but its unix for sure). I have no user names and no passwords and need to login to read a tape. Is there any way to do that? I hear... (3 Replies)
Discussion started by: orestis
3 Replies
5. UNIX for Dummies Questions & Answers
Thanks
AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies
6. UNIX for Dummies Questions & Answers
I have looked around on the internet and still i am no wiser as to how to show the number of files in a directory that have been accessed this week and also that as a percentage.
Any help would be much appreciated. (5 Replies)
Discussion started by: RAFC_99
5 Replies
7. Shell Programming and Scripting
I am trying to find out the number of days between the current date and user defined date.
I took reference from here for the date2jd() function.
Modified the function according to my requirement. But its not working properly.
Original code from here is working fine.
#!/bin/sh... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies
8. Shell Programming and Scripting
i have my files and the variables value extracted from db is taken as
in1=slot0312
in2=best
in3=it is :veryliong/fine
as varibles..
i have a folder stuctures in my unix machine as :
/2011/hand_sl0312/best/HOD/file1.txt
/2011/hand_sl0312/happy/HOD/file1.txt... (1 Reply)
Discussion started by: rajniman
1 Replies
9. Shell Programming and Scripting
// AIX 6.1
In need of finding which AIX user accounts will be expired and are
locked.
I have placed the following parameters under /etc/security/user... (1 Reply)
Discussion started by: Daniel Gate
1 Replies
LEARN ABOUT FREEBSD
logins
LOGINS(1) BSD General Commands Manual LOGINS(1)
NAME
logins -- display account information
SYNOPSIS
logins [-admopstux] [-g groups] [-l logins]
DESCRIPTION
The logins utility displays information about user and system accounts.
The following options are available:
-a Display information about the password change and account expiration times for each account.
-d Select accounts with duplicate UIDs.
-g groups Select accounts that are members of the specified groups. If multiple group names are specified, they must be separated with com-
mas.
-l logins Select accounts matching the specified login names. If multiple names are specified, they must be separated with commas.
-m Show information about secondary groups.
-o Display the information for each account on a single line of colon-separated fields.
-p Select accounts with no password.
-s Select system accounts. These are currently defined as accounts with UIDs below 1000, plus the ``nobody'' account (UID 65534).
-t Sort selected accounts by name rather than by UID.
-u Select user accounts. These are currently defined as accounts with UIDs above 1000, except the ``nobody'' account (UID 65534).
-x Display information about each account's home directory and shell.
If multiple selection options are specified, all accounts matching any of the selection criteria will be displayed.
If no selection options are specified, all accounts will be displayed.
SEE ALSO
getgrent(3), getpwent(3), group(5), passwd(5), pw(8)
HISTORY
The logins utility appeared in FreeBSD 4.10.
AUTHORS
The logins utility was written by Dag-Erling Smorgrav <des@FreeBSD.org> based on similar utilities in other operating systems.
BSD
March 6, 2004 BSD