1825003 Members
2783 Online
109678 Solutions
New Discussion юеВ

getent passwd

 
SOLVED
Go to solution
10ft
Occasional Advisor

getent passwd

Hi !
I would like to know what command i have to use if i want see all users/group of my current db of users/group.

With linux i use:
getent passwd
getent group

with hpux 11.xx ?

Thanks
4 REPLIES 4
Mel Burslan
Honored Contributor

Re: getent passwd

cat /etc/passwd
cat /etc/group

are the closest commands
________________________________
UNIX because I majored in cryptology...
Darren Prior
Honored Contributor

Re: getent passwd

Hi,

logins -g will show you all the users belonging to

regards,

Darren.
Calm down. It's only ones and zeros...
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: getent passwd

pwget and grget are the commands. Man pwget for details.
If it ain't broke, I can fix that.
Sundar_7
Honored Contributor

Re: getent passwd

logins -g to list all the users who belongs to the group

groups to list all the groups a user belongs to
Learn What to do ,How to do and more importantly When to do ?