Specific User Proceses


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Specific User Proceses
# 1  
Old 04-28-2009
Specific User Proceses

Hi, I am trying to find out if it is possible using the bash shell in unix to find out from a list of processes which of those belong to a specific user e.g user1?

Also is it possible to find out which processes currently running are using alot of resources?

All help is appreciated. Thanks
# 2  
Old 04-28-2009
Do you mean a process tree?
Code:
ps -ejH
# or 
ps axjf

or maybe you mean:
Code:
ps -ef | grep username

# 3  
Old 04-28-2009
Thanks jim mcnamara for that response that is what i am looking for but is it possible for me to somehow combine the two.

For instance using a simple echo command a screen will appear requesting a username, then depending on which username is entered the process tree is then searched for the desired username. Is this possible, if so how would i go about implementing this?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

User / User specific

Im currently trying to design a user specific script by this i mean i need a username that will verify the user exists, then run script directly off the user input i.e username : ted then the script will be ran to ps aux grep ted (7 Replies)
Discussion started by: bellz
7 Replies

2. Cybersecurity

Audit on specific user in linux

Hi All, Please let me how to enable user specific audit in Linux server. Say i have specific user namely admin1,admin2,admin3 apart from the normal users, user1,2,3.....userN. How to enable audit for users admin1,admin2 and admin3 alone. Also please let me know, if this would have any... (4 Replies)
Discussion started by: pradebban
4 Replies

3. UNIX for Advanced & Expert Users

allow user to use sudo cp on a specific directory and only a specific file

Is there a way to allow a user to use sudo cp on a specific directory and only a specific file? (6 Replies)
Discussion started by: cokedude
6 Replies

4. UNIX for Advanced & Expert Users

How to allow Solaris OS user to telnet to specific IP?

Dear All, I need help on allow/disallow OS user to telnet to specific IP address from client side? I have one Solaris 10 machine, I will permit OS user to telnet to specific IP address. (5 Replies)
Discussion started by: mamun_bu
5 Replies

5. AIX

Fix the password for specific user

Guy's I'm looking for where the password to be saved in AIX or I'm looking to by one step or one script to set and fix the password for this user appuser to be abc1234 , I'm using this command passwd appuser but it's asking me to put new password I don't like this I want to set the... (2 Replies)
Discussion started by: Mr.AIX
2 Replies

6. Solaris

User permission to a specific directory only

is is possible to grant user access to only one subdirectory? example a. create ftp user with read/write/delete access (ftp user doesnt belong to uguys group) $ cd /etc/mydir $ls file1 file2 $ls -al -rw-rw-r-x 2 unixguy uguys 96 Dec 8 12:53 file1 -rw-rw-r-x 2 unixguy uguys 96 Dec 8... (1 Reply)
Discussion started by: lhareigh890
1 Replies

7. Shell Programming and Scripting

User access to only specific subdirectory

is is possible to grant user access to only one subdirectory? example a. create ftp user with read/write/delete access (ftp user doesnt belong to uguys group) $ cd /etc/mydir $ls file1 file2 $ls -al -rw-rw-r-x 2 unixguy uguys 96 Dec 8 12:53 file1 -rw-rw-r-x 2 unixguy uguys 96... (0 Replies)
Discussion started by: lhareigh890
0 Replies

8. UNIX for Dummies Questions & Answers

Allow a user use a specific root command!

Hi, I like to allow an user to permit an root command " /usr/ucb/ps -auxwww", do you know how? Kind regards Mehrdad (6 Replies)
Discussion started by: mehrdad68
6 Replies

9. Solaris

User specific printing options

Hi, how do I query available printer options and set defaults for my print requests? I have found lpoptions (man lpoptions(1)) on the web but it doesn't seem to be available under Solaris and I can't work out how else to do it. Thanks, Bob (2 Replies)
Discussion started by: BobD
2 Replies

10. Shell Programming and Scripting

Looking for specific user ID's from the passwd file

Hello, My issue is that I want to look for specific users that have their first and last initial followed by four numbers. For example: ab1234 I've already got the user ID's out of the passwd file more passwd | awk -F ":" '{print $1}' > userids I just need to know how to just pick... (8 Replies)
Discussion started by: LinuxRacr
8 Replies
Login or Register to Ask a Question