![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to process the user id list in /etc/group? | april | Shell Programming and Scripting | 4 | 02-13-2008 09:48 AM |
| Online user list script | Necrologist | Shell Programming and Scripting | 4 | 09-10-2006 01:37 AM |
| Creating User Accounts from a list in file | Laila Saif | Shell Programming and Scripting | 8 | 12-21-2005 07:23 AM |
| list of default umask by user | Zlikos | AIX | 3 | 09-29-2005 05:15 AM |
| su - user... how to find out the list of users and their passwords.. | yls177 | UNIX for Dummies Questions & Answers | 2 | 11-13-2002 03:07 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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 |
||||
| Google UNIX.COM |