473,699 Members | 2,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

xxoulmate
77 New Member
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 2874
diSangro
69 New Member
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:<userna me> 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:s4dsKumlJ WlcQ:3100:20::/home/ifour:/bin/csh
rt:qeNwoqnPuEnG E:3001:20:realt ime 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
1435
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 example:- Bookings EventLog --------- --------- BookID PK EvID Primary Key BookDate BookID Foreign Key
19
1564
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 board, and numerous smaller ones. Initially my applications have started as accessing MS-SQL Server over the internet. For development purposes I use MSDE, or rent an SQL Server DB from my site provider for $15 USD monthly. The "school board"...
3
5052
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 regex that matches the "user" part of that url.
1
1780
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 application. So far, we've got 2 done but we have several more to go. Anyway, we've discovered something which is pretty irritating for our users. When they go to any of the Crystal Reports for .NET and view it, they can see it just fine. ...
15
11132
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 ( update.zip ), and can automate the FTP'ing of the SE zip file to the update site. I have, as yet, been unable to find a way of automating the creation of a SE zip file from the initial update.zip. I have performed a rather
5
102520
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 the other with just the TIME portion. ie 9:10:00 AM. I can make the table view display what I want by placing the same data in 3 fields and setting the display property to 'General Date',' Medium Time' and 'Short Date' but the underlying data...
104
10869
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 sorted by Numb. Everything I've read on the web suggests that including the TOP directive should enable ORDERY BY in views. Does someone have an idea why the sorting is not working correctly for this particular view? thanks. CREATE VIEW...
4
5056
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 view) 2. "Shortcut Menu" is set to "Yes", however I cannot right click in the form to go to design view. These properties are already set on frm2:
0
964
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" or "license" for more information. 'folder3/folder4/folder5/file'
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.