user list


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users user list
# 1  
Old 12-02-2004
user list

Hi,
I have root access on Linux red hat server.
How do I see the current user list and group they belong?

ThankS!
# 2  
Old 12-02-2004
current list? Do you mean those who are currently logged in? try
who

If you mean the list of users, look at /etc/group
# 3  
Old 12-02-2004
user name list

Sorry.
I mean the user name list and user group name list that have been set up the admin.
I just have root access but not a admin.
I want to change one of the user's password and I also want to see who have been set up as a user on this machine.
# 4  
Old 12-02-2004
Well, as long as you're not using NIS or anything like that, you could just do
cut -d':' -f1 /etc/passwd
to get the list of users, and then look at /etc/group to see group membership. As far as I recall on Redhat (I use SUSE myself), each user will also have a group associated with the account (with the same name as the username) - and this will be their primary group. /etc/group will list any "secondary" group memberships.

Cheers
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Active User List Script

Hello guys ! I tried a script to list all the active users in the current server in AIX who | grep '^user' this displays the entire line ... All I need is only the user list I found a command for linux using grep -o word grep -o was not recognized in AIX Can you guys help me out ? Use... (2 Replies)
Discussion started by: varun aravinth
2 Replies

2. Emergency UNIX and Linux Support

A way to capture the user list

Can someone please help me with a way to generate a user list on a system along with the group to which the id belongs? (8 Replies)
Discussion started by: ggayathri
8 Replies

3. Shell Programming and Scripting

List of process of user

Hi, I need an output of process running on server, i am executing ps -ef | grep test output is asak 22362 1 0 Nov07 ? 00:00:03 /usr/software/bin/perl-5.8.8 /u/assk/bin/test -v none JOBID=2012117 asak 23748 22362 0 Nov07 ? 00:00:00 /usr/software/bin/perl-5.8.8... (3 Replies)
Discussion started by: asak
3 Replies

4. UNIX for Advanced & Expert Users

How to get User list from different groups and root?

Hi all, I want to list out users from different group and root, who are roaming in our group or root as a user. how can i list out this users ? (1 Reply)
Discussion started by: kpatel97
1 Replies

5. Solaris

Solaris command to list user

Can someone tell me the Solaris equivelant of aix command lsuser? I need to find a users primary and secondary group. I don't have smit... (2 Replies)
Discussion started by: Grueben
2 Replies

6. Shell Programming and Scripting

Write a scripts to kill idle user for 60 min. & email user list to admin in text file

Folks, I have written one script for following condition by referring some of online post in this forum. Please correct it if I'm missing something in it. (OS: AIX 5.3) List the idle user. (I used whoidle command to list first 15 user and get username, idle time, pid and login time).... (4 Replies)
Discussion started by: sumit30
4 Replies

7. Shell Programming and Scripting

How to get list of user into an array..

Hi, cut -d: -f1,3 /etc/group >rpt.out I have a doubt in above unix commands. right i am getting list of group user id into rpt.out file. instead i need to store it as an array. could you please tell me how can i get list of user into an array.. If u could tell me give me in perl script... (2 Replies)
Discussion started by: solo123
2 Replies

8. Shell Programming and Scripting

IF $USER is not in this list of users, then do this

I need to add to a BASH script if ${USER} is not in a list of users (smitha, brownd, adamsp) then do something... what is the best shortest way to accomplish an if statement with a list like this? Also the list of users should be in the script, not an external file. Thanks! (5 Replies)
Discussion started by: glev2005
5 Replies

9. Shell Programming and Scripting

How to process the user id list in /etc/group?

To all, I need to find a group in /etc/group and if found, I need to list out all the login ids for that group - one login id per line. To find the list of user login ids for group X, I probably will use cat /etc/group|grep ^X:|cut -d: -f4 This will return back a list of comma delimited... (4 Replies)
Discussion started by: april
4 Replies

10. AIX

list of default umask by user

Hi, Do you know if it's possible to have the user list with their umask on AIX system ? I need to check if they are OK but with smit and user by user, it will take all the day. :) An idea ? Thx a lot. (3 Replies)
Discussion started by: Zlikos
3 Replies
Login or Register to Ask a Question