List of users on an AIX system

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support List of users on an AIX system
# 1  
Old 06-16-2010
List of users on an AIX system

Is there a way to generate a list of users with name, user ID, and Security Group? It is urgent for audit purposes.

Please help.
# 2  
Old 06-17-2010
Generally, all the Unix systems is having that info in /etc/passwd file ( if the file is properly and none of the field is avoided)

Code:
awk -F: '{print $5"|"$1"|"$3}' /etc/passwd

# 3  
Old 06-17-2010
Or try
Code:
lsuser

There can be added several attributes that you want to see; check the man page.
# 4  
Old 06-17-2010
or try below command:

Code:
id

SmilieSmilieSmilie
# 5  
Old 06-18-2010
Hi ahmad,

AFAIK, "id" will display information about the current user only?
just curious to know if they are flavor specific or so?
# 6  
Old 06-24-2010
id will only show what is your current login user at the moment, it wont show much. check your /etc/passwd or /etc/shadow or /etc/group for more information on the users and group
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

List the Manager of Users in AD - Using list- Get-ADuser

Is there any command that can used in Linux that export usernames and their manager's name from AD using bash shell script? I know this can be done using powershell but I need to use Linux for this procedure. (2 Replies)
Discussion started by: dellanicholson
2 Replies

2. AIX

Accessing files on AIX system from Linux system

I have a following requirement in production system 1 : LINUX User: abcd system 2: AIX (it is hosting a production DB) Requirement user abcd from system 1 should have read access on archive log files created by DB on system 2. The log files are created with permissions 540 by user ora ,... (2 Replies)
Discussion started by: amitnm1106
2 Replies

3. UNIX for Dummies Questions & Answers

List system users and..

Hello i need fast help... script which will list only human users from /etc/passwd and find out if they have something in home. Thanks (11 Replies)
Discussion started by: mentoscz
11 Replies

4. Shell Programming and Scripting

AIX os level 6.1 for list of users and groups

I have a AIX server o/s 5.3.0.0 and a few at o/s 6.1.0.0 The issue I am haveing is running this on the server with o/s of 5.3 works good but not on the o/s of 6.1 any help out here?? #!/usr/bin/ksh user -a pgrp groups ALL |awk '{print $1}' > a1 lsuser -a pgrp groups ALL |awk '{print $2}'|cut... (4 Replies)
Discussion started by: Jcraft
4 Replies

5. AIX

AIX Printers moved to anothere AIX system

AIX Printers need to be moved to another system Guy's We have two servers old AIX 5.2 and new AIX 6.1 the old server has more than 300 printers installed with different configurations I'd like to move all the printers from the old server to the new server with fast steps it's... (1 Reply)
Discussion started by: ITHelper
1 Replies

6. UNIX for Advanced & Expert Users

Best practices with AIX system users?

All, Preliminaries: AIX 5.2 Tivoli Maestro 6.1 (9.2) I am auditing an older AIX system. As it stands, I can login remotely to the system using the Maestro application's user account. This is BAD. The administrator claims that he cannot disable the remote login, because it will... (1 Reply)
Discussion started by: Thatto
1 Replies

7. AIX

How to apply aix 5.3 TL8 properly on ML5 aix system ?

Is it necessary to put system into single user mode for applying aix 5.3 TL8 on a aix 5.3.5.0 system ? Is the TL8 installation not totally safe ? thank you. (6 Replies)
Discussion started by: astjen
6 Replies

8. Solaris

rsh commands not getting executed from Solaris 10 System to AIX System

Hi Friends, I am trying to execute rsh commands from Solaris 10 system to AIX system. When I give; Solaris10# rsh <hostname> ls -l , it gives me an error rshd : 0826-826 The host name for your address is not known At the same time, Solaris10# rsh <hostname> ---- gives me remote shell of... (25 Replies)
Discussion started by: jumadhiya
25 Replies

9. UNIX for Dummies Questions & Answers

Find users using system(List them only once)

Hey, got a few questions here for anyone who can help...... Command line to - display users using the system, but count them only once. Command line to - use the lastcomm command to display how many times ive used grep in october. Command line to - list all logged on users with at least 6... (3 Replies)
Discussion started by: xBuRnTx
3 Replies

10. UNIX for Advanced & Expert Users

AIX Unix.. number of users on system in a particular group

Does anyone know what pipe string might be used to determine how many people are logged onto an AIX system where a group ID begins with lets say 4. In other words, I am looking to query the system for the number of people currently logged onto a system that belong to any group starting with 4.... (1 Reply)
Discussion started by: afiore
1 Replies
Login or Register to Ask a Question