10-14-2001
Simple grep questions
Hi all,
My boss wants me to find out how often e-m users are accessing their account
. The mail server keeps log of all logins. I want to use grep the 'usernames', but it should come out the moment it first encounters the username in the log. Can I do that? I want to avoid 10+ greps of same users...
Then all the users that didn't login will be added a day, and output to a file. Any suggestions?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
i am a total dummy of unix. i want to find out the following information from my Sun Solaris 8 Unix machine:
1) The command to display physical and virtual memory
2) The command to display the CPU
3) The command to display the total harddisk space.
thank u very much and have a nice... (3 Replies)
Discussion started by: champion
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am a dummy in unix. I have 2 simple questions.
1) I am the adminstrator. I want to set a alias that applied to all the users. I do not want to update each user's .profile or .cshrc file.
So is there a way to update it in one file so that it applies to all users ?
Example : I want... (1 Reply)
Discussion started by: champion
1 Replies
3. UNIX for Dummies Questions & Answers
Allright the situation is that i have a dual boot set up with windows xp and red hat 9.0. the problem is that my modem and sound card dont work with linux. I found a driver, and i have to download it with xp. My question is.....
How do i actually copy the file to the linux... (4 Replies)
Discussion started by: nregenwether
4 Replies
4. UNIX for Dummies Questions & Answers
Hi
I've got a trivial question on using ed (yes, I know, other editors are better!)
How do I insert a line that is just a single dot? (That is, how do I insert a line that starts with a dot and then new line)
Thanks
Peter (4 Replies)
Discussion started by: peterl
4 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I'm a noob when comes to make files....
My intentions for the use of my make file are not that of a usual compilation, etc.
It is simply to copy some files from a RCS controlled area to a public area which has read rights only for a web page.
My dilemma comes in the form of sub... (0 Replies)
Discussion started by: Roxydogg28
0 Replies
6. UNIX for Dummies Questions & Answers
Hello All,
1.)
I am searching for ".exe" in a text file
2.)
I need to search for a hexadecimal entree of at least four digits (8 Replies)
Discussion started by: Omega1589
8 Replies
7. Solaris
I have two simple questions
First is :can dhcp server NATIVE of solaris perform dhcp
updates of bind via dnssec like dchpd on linux?
Second: Is possible to build a pdc with samba and iplanet ldap server?Or is better with openldap?
I never found howto or discussions about iplanet server.
Thanks (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
8. AIX
I have an unfortunate need to redo a bunch of disk settings on a VIOS on AIX, so I was putting together a quick script to scrub everything it has, make the changes, and then put the mappings back. It works, I just am trying to get my awk a bit more up-to-snuff and wanted to know the proper way to... (2 Replies)
Discussion started by: Vryali
2 Replies
9. AIX
Hello,
I am looking into virtualizing AIX 7.1 on our p7 machine that already has AIX 7.1 installed on it. I have a few questions about them:
1) In order to gain LPAR functionality, do I need to purchase PowerVM software?
2) I read that LPARs are managed from locally attached graphical... (1 Reply)
Discussion started by: bstring
1 Replies
logins(1M) logins(1M)
NAME
logins - display system and user login data
SYNOPSIS
groups] logins]
DESCRIPTION
displays data concerning system and user logins. The format and content of the output is controlled by command options and may include:
system or user login, user ID number, comment field value (for example, user name, location), primary group name, primary group ID, supple-
mentary group names, supplementary group IDs, home directory, login shell, user security level, user audit events, and password aging
parameters. The default data is: login, user ID, primary group name, primary group ID, and comment field value. Output is sorted by user
ID, with user logins following system logins. The default output consists of login, user ID, primary group, primary group ID and comment
field formatted into columns.
The following options are available to this command:
Display two account expiration fields. The fields show how long the
account can be unused (in days) before it becomes inactive and the date the account will expire.
Display logins with duplicate UIDs.
Show multiple group membership data.
Display with alternate format of one line of colon separated fields.
Display logins with no passwords
Display all system logins
Sort output by login rather than UID.
Display all user logins.
Display extended information about selected users. This extended
information includes home directory, login shell and password aging data, each on its own line. Password information consists of pass-
word status (PS for valid password, LK for locked and NP for no password) and, if a password is present, date of last change, required
number of days between changes, and number of days allowed between changes. In the case of non-trusted systems, the date of last
change will be the latest Thursday since the change.
Display all users belonging to
groups, sorted by login. A comma separated list specifies multiple groups.
Display the requested
logins. A comma separated list specifies multiple logins.
Specify a switch used to classify NIS
or local users. With the option, only users belonging to the specified repository are displayed.
Multiple options may be used. Any login matching any of the criteria will be displayed. A login will be displayed only once, even if it
meets multiple criteria.
EXAMPLES
List all logins in default format.
List all logins that have no password or have a duplicate UID in default
format.
List all system logins in the alternate format.
List all local users of the system.
List all the NIS users of the system.
WARNINGS
HP-UX 11i Version 3 is the last release to support trusted systems functionality.
FILES
HP-UX password file.
HP-UX group file.
SEE ALSO
listusers(1), passwd(1), group(4), passwd(4), prpwd(4), shadow(4).
STANDARDS CONFORMANCE
logins(1M)