06-17-2006
shereenmotor: ps -ef doesnt output the username at all, it does however output the UID, which still doesnt help because I need to link the UID to a username.
grial: ps -O will work, but i dont know what format I would need for my question.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I'm writing a script to display all the current logged on users and the processes they're running, output to a file. The output will look similar to this:
User1 (Real name not login name)
PID TTY TIME CMD
3179 pts/3 00:00:00 vim
User2
PID TTY TIME ... (2 Replies)
Discussion started by: olimiles
2 Replies
2. Shell Programming and Scripting
hello, i am VERY new to this whole script world. I need to come up with a script that will email a user if they have an idle process past 500 minutes...any suggestions??? Thanks so much. (0 Replies)
Discussion started by: sheppy28
0 Replies
3. UNIX for Dummies Questions & Answers
I am trying to write a script to list all users and their processes. I cant seem to find out how to link the PID to the user. For example if i run ps -a I get a nice list of all the processes running and their PID, but no information about which user is running them. I need the users real name not... (3 Replies)
Discussion started by: iago
3 Replies
4. Shell Programming and Scripting
Thx for all the help so far, I really appreciate it, this is the last task I have to do then I am no longer a trainee ^^, which means I can use whatever utility I want. :O
I need to write a script that does more or less what is shown below.
The Users Name
PID TTY TIME CMD
12345 pts/3... (22 Replies)
Discussion started by: barbus
22 Replies
5. UNIX for Advanced & Expert Users
Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go?
Thank you
Richard (4 Replies)
Discussion started by: ukndoit
4 Replies
6. Shell Programming and Scripting
hello All,
i am trying to get the each users by with thier processing. I have try it in several ways but i am not getting thier my code is
#!bin/bash/
users=`cat /etc/passwd | cut -d':' -f5`
onlineusers=`users | tr '.' ' '`
$onlineusers | while read `$users`
do
echo `ps -U $users`... (12 Replies)
Discussion started by: sam4now
12 Replies
7. Solaris
Hi
Is there an easy way to identify and group currently running processes into OS processes and APP processes. Not all applications are installed as packages.
Any free tools or scripts to do this?
Many thanks. (2 Replies)
Discussion started by: wilsonee
2 Replies
8. Shell Programming and Scripting
Hello,
What i have to do is make a top 10 list of users sorted by the number of processes opened at a given time. Can anyone help me with finding out for a given moment, for all users how many processes each had opened? (5 Replies)
Discussion started by: gabibyte
5 Replies
9. Shell Programming and Scripting
Is it possible to get a list of users sorted by the number of processes executed by each.
I have a HP - UX server with 2800 processes running currently.
And I want to know the number of processes owned by each person logged in to that server.something like below:
user1 : 150 Processes
user2 :... (2 Replies)
Discussion started by: engineer
2 Replies
10. Homework & Coursework Questions
I would like to get an opinion for my solution for this task and get feedback about better approach or mistakes I have made.
1. The problem statement, all variables and given/known data:
The task is to create a script which prints information about users whose names are specified in the... (2 Replies)
Discussion started by: kornfan
2 Replies
LEARN ABOUT LINUX
user-keyring
USER-KEYRING(7) Linux Programmer's Manual USER-KEYRING(7)
NAME
user-keyring - per-user keyring
DESCRIPTION
The user keyring is a keyring used to anchor keys on behalf of a user. Each UID the kernel deals with has its own user keyring that is
shared by all processes with that UID. The user keyring has a name (description) of the form _uid.<UID> where <UID> is the user ID of the
corresponding user.
The user keyring is associated with the record that the kernel maintains for the UID. It comes into existence upon the first attempt to
access either the user keyring, the user-session-keyring(7), or the session-keyring(7). The keyring remains pinned in existence so long as
there are processes running with that real UID or files opened by those processes remain open. (The keyring can also be pinned indefi-
nitely by linking it into another keyring.)
Typically, the user keyring is created by pam_keyinit(8) when a user logs in.
The user keyring is not searched by default by request_key(2). When pam_keyinit(8) creates a session keyring, it adds to it a link to the
user keyring so that the user keyring will be searched when the session keyring is.
A special serial number value, KEY_SPEC_USER_KEYRING, is defined that can be used in lieu of the actual serial number of the calling
process's user keyring.
From the keyctl(1) utility, '@u' can be used instead of a numeric key ID in much the same way.
User keyrings are independent of clone(2), fork(2), vfork(2), execve(2), and _exit(2) excepting that the keyring is destroyed when the UID
record is destroyed when the last process pinning it exits.
If it is necessary for a key associated with a user to exist beyond the UID record being garbage collected--for example, for use by a
cron(8) script--then the persistent-keyring(7) should be used instead.
If a user keyring does not exist when it is accessed, it will be created.
SEE ALSO
keyctl(1), keyctl(3), keyrings(7), persistent-keyring(7), process-keyring(7), session-keyring(7), thread-keyring(7),
user-session-keyring(7), pam_keyinit(8)
Linux 2017-03-13 USER-KEYRING(7)