Solaris command to list user | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Solaris command to list user

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-06-2012
Grueben Grueben is offline
Registered User
 
Join Date: Aug 2010
Last Activity: 19 June 2014, 5:09 AM EDT
Posts: 90
Thanks: 47
Thanked 0 Times in 0 Posts
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...
Sponsored Links
    #2  
Old 01-06-2012
h@foorsa.biz h@foorsa.biz is offline
Registered User
 
Join Date: Jun 2008
Last Activity: 4 January 2014, 7:56 AM EST
Posts: 567
Thanks: 7
Thanked 46 Times in 44 Posts

Code:
$listusers


Code:
$cat /etc/passwd | cut -d ":" -f 1 | xargs  -l id


Last edited by h@foorsa.biz; 01-06-2012 at 06:36 AM..
Sponsored Links
    #3  
Old 01-06-2012
aksijain aksijain is offline
Registered User
 
Join Date: Jul 2011
Last Activity: 20 June 2013, 9:15 AM EDT
Posts: 64
Thanks: 9
Thanked 4 Times in 4 Posts
id -a <user-name>
will list all the groups for that user
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find command to list all the 777 files and directories owned by root user newtoaixos AIX 8 01-05-2012 02:08 PM
Command to list or view the files in .pkg (solaris) and how to extract without installing frintocf Solaris 5 09-19-2011 11:02 AM
Solaris- Read command from user input PDManc Shell Programming and Scripting 2 03-11-2011 07:40 AM
Solaris user account de-activated, command to activate again admin@solaris Solaris 6 06-09-2009 05:54 AM
Command to list all the VIP addresses assigned to Solaris server weblogicsupport Solaris 1 01-04-2009 11:23 PM



All times are GMT -4. The time now is 04:12 AM.