473,322 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

how could i extract or view all users in a group....

xxoulmate
what is the command to extract or view all users in a group
in linux server.
cud anyone help with this. thnx
Aug 18 '07 #1
1 2862
One way to view all users of a group is (assuming csh) :

-first find the <group_id> , for example : cat /etc/group | grep <group_name>

(the result has the <group_id> number after <group_name>)

-then list all users of this group , as follows : cat /etc/passwd | grep <group_id>

Each line of your output will contain:<username> of that group, encrypted password, the <user_id>, the <group_id> , <home_dir> path and <login_shell>

-----------------------------------------------------------------------------------------------------------
Example on HPUX , with group called users having 2 users ifour and rt:

i4hp_user[12] cat /etc/group | grep users
users::20:root
i4hp_user[13] cat /etc/passwd | grep 20
ifour:s4dsKumlJWlcQ:3100:20::/home/ifour:/bin/csh
rt:qeNwoqnPuEnGE:3001:20:realtime development,,,:/home/rt:/bin/csh
i4hp_user[14]
----------------------------------------------------------------------------------------------------------


what is the command to extract or view all users in a group
in linux server.
cud anyone help with this. thnx
Aug 24 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dan Williams | last post by:
We have a bookings table that records various information and for each booking we record various events that users have performed on that booking along with when the event occurred. For...
19
by: Lyle Fairfield | last post by:
I have developed ADPs now for three years, in Ac2K and AcXP. I have sold two ADP applications for > $30,000 USD, one to a large company in Atlanta, and one to a local (Ontario, Canada) school...
3
by: jarod1701 | last post by:
Hi, I'm currently trying to create a regular expression that can extract certain elements from a url. The url will be of the following form: http://user:pass@www.sitename.com I want a...
1
by: Rod | last post by:
We've implemented forms authentication with Active Directory. We're slowly working on converting our Crystal Reports' reports from a VB6 application into Crystal Reports for .NET in our ASP.NET...
15
by: Karl | last post by:
Hi all, I regularly use FTP to place Self Extracting Zip files on the web for remote users to update their datafiles. Works very nicely. I have automated the creation of the initial zip file (...
5
by: rs | last post by:
I have a table with a timestamp field which contains the date and time. ie. 9/13/2004 9:10:00 AM. I would like to split this field into 2 fields, one with just the DATE portion ie 9/13/2004 and...
104
by: Beowulf | last post by:
I have the view below and if I use vwRouteReference as the rowsource for a combo box in an MS Access form or run "SELECT * FROM vwRouteReference" in SQL Query Analyzer, the rows don't come through...
4
by: RLN | last post by:
I have a form that does not display correctly. frm1 opens frm2 via a command button. My three problems with frm2: 1. Displays in form view when called from the button. (should be datasheet...
0
by: Timothy Grant | last post by:
On Mon, Aug 4, 2008 at 4:54 PM, Sriram Rajan <sriramrajan@acm.orgwrote: Something like below? Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16) on darwin Type "help", "copyright", "credits"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.