Operating System - HP-UX
1833756 Members
2487 Online
110063 Solutions
New Discussion

Re: how can i find all user using a hp-ux command

 
blackbabe
Occasional Contributor

how can i find all user using a hp-ux command

how can i find all user using a hp-ux command
10 REPLIES 10
RAC_1
Honored Contributor

Re: how can i find all user using a hp-ux command

You can use ps command for that and grep for user_name.

ps -ef|grep "command"

Check first column.

OR you can use lsof tool. (Download it from hp-ux porting centre.)

lsof -c "command_name"
There is no substitute to HARDWORK
T G Manikandan
Honored Contributor

Re: how can i find all user using a hp-ux command

#logins
#logins|awk '{print $1}'
RAC_1
Honored Contributor

Re: how can i find all user using a hp-ux command

Are you talking abt users logged in?

who -u

finger.

Users on system?
logins,
cut -f1 -d ":" /etc/passwd
There is no substitute to HARDWORK
Graham Cameron_1
Honored Contributor

Re: how can i find all user using a hp-ux command

"finger -R" shows who's logged in and where from.
"who -R" does something similar.
"logins" does something similar but you need to be root.
"last -R" gives history of recent logins and where from.
All possible users are listed in the /etc/passwd file and can be viewed with the "listusers" command.
For more on any of the above, see the man pages.
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
Zigor Buruaga
Esteemed Contributor

Re: how can i find all user using a hp-ux command

Hi,

I'm not sure what you are looking for but, in addition to good previous replies ...

"whodo" - which users are doing what

man whodo for more details.

HTH
Kind regards,
Zigor
Stanimir
Trusted Contributor

Re: how can i find all user using a hp-ux command

Hi!
For convinient view:
#who -q

If you want to now users IP-adresses:
#who -T

If you need ather options:
#man who

Regards.
Khalid A. Al-Tayaran
Valued Contributor

Re: how can i find all user using a hp-ux command


On HP-UX use:

whodo


All user and what they are running.
blackbabe
Occasional Contributor

Re: how can i find all user using a hp-ux command

thank you very much!
Graham Cameron_1
Honored Contributor

Re: how can i find all user using a hp-ux command

If any of the above was of use, maybe you could assign some points.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x022718276953d61190040090279cd0f9,00.html
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
Norman_21
Honored Contributor

Re: how can i find all user using a hp-ux command

Hello,

if you want to list the current login users, then the commands above will do it for you:
logins
last -R
who -u
finger (note that this command might not work, check the /etc/inetd.conf file. If it has # mark at the beginning of the line, then edit the file using unix editor, e.g) vi /etc/inetd.conf then remove the # mark)sometimes it's not secure to do so!

Khalid Al-Tayaran,
Would you mind to drop me an email, I need your assistance! or you can post your email if you want.
Thanks
latif_IT2000@yahoo.com
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003