Sponsored Content
Operating Systems Solaris add administrator user to system Post 302358483 by jlliagre on Friday 2nd of October 2009 05:07:09 PM
Old 10-02-2009
Another way to display which groups a user belongs to is using the logins command:
Code:
/usr/bin/logins -m

 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to add user on Embedded System

The directions below were provided by someone on the unslung mailing list. unslung is a linux OS for LinkSys's $100 NSLU2 NAS controller. I'm posting the query here because (1) I think it is really a generic linux/unix questions (2) I did not get a response in the unslung mailing list. I... (1 Reply)
Discussion started by: siegfried
1 Replies

2. What is on Your Mind?

I want to become a System Administrator

Has anyone got any advice on how I can get a job as a Unix/Solaris system administrator? My current job is supporting an application that runs on Solaris servers. I have very minimal Solaris/Unix skills but would like to expand on them with the aim of getting a junior sys admin role. I have... (4 Replies)
Discussion started by: Sepia
4 Replies

3. AIX

Test 223: System p Administrator

Please may you help me with specific study packs, redbooks etc that may help me pass this certification. Also can you advise me the best AIX certification course as I am new to AIX, coming from solaris and networking environments. Thanx (10 Replies)
Discussion started by: Zim-Aix-Guru
10 Replies

4. Advertise with Us

Needed: Sr. System Administrator

Composite Software, Inc. is hiring! Sr. System Administrator Location: San Mateo, CA REQ: 10-22 Reports to: IT Manager Job Description Composite Software is hiring a full-time System Administrator. The system administrator will be responsible for installing,... (0 Replies)
Discussion started by: Composite SW
0 Replies

5. Shell Programming and Scripting

Shell Scripting for System Administrator

Hello All, If possible can anybody kindly let me know the good shell scripting book for system Administrator. Thanks & Regards, Vinay.K.S (1 Reply)
Discussion started by: vinay_ks
1 Replies

6. What is on Your Mind?

Know your System Administrator

Couldn't resist: www.gnu.org/fun/jokes/know.your.sysadmin.html (1 Reply)
Discussion started by: radoulov
1 Replies

7. UNIX for Advanced & Expert Users

Linux System Administrator for a role in CH

Hi guys I hope I will not break any rules and guidelines on the forum with this post. I am Admir, working as a recruiter for execIT Recruitment Zurich, Switzerland. Our client is an urgent need of a linux system administrator/support analyst who has trading floor experience and is eligible... (1 Reply)
Discussion started by: BosAd
1 Replies

8. UNIX for Dummies Questions & Answers

Becoming a system administrator, need some advice.

I've been learning linux and solaris for the past couple months and have been thinking about seeking a systems admin career. Is it worth it to learn solaris? Do many companies really use it or is it a waste of my time? Would learning just linux be a better idea? I see there's more opportunity as a... (2 Replies)
Discussion started by: austinramsay
2 Replies
logins(1M)						  System Administration Commands						logins(1M)

NAME
logins - list user and system login information SYNOPSIS
/usr/bin/logins [-admopstux] [-g group...] [-l login_name...] DESCRIPTION
This command displays information on user and system logins known to the system. Contents of the output is controlled by the command options and can include the following: user or system login, user id number, passwd account field value (user name or other information), primary group name, primary group id, multiple group names, multiple group ids, home directory, login shell, and four password aging param- eters. The default information is the following: login id, user id, primary group name, primary group id and the account field value. Out- put is sorted by user id, system logins, followed by user logins. OPTIONS
Options may be used together. If so, any login that matches any criteria are displayed. The following options are supported: -a Add two password expiration fields to the display. The fields show how many days a password can remain unused before it automatically becomes inactive, and the date that the password expires. -d Selects logins with duplicate uids. -g group Selects all users belonging to group, sorted by login. Multiple groups can be specified as a comma-separated list. When the -l and -g options are combined, a user is only listed once, even if the user belongs to more than one of the selected groups. -l login_name...Selects the requested login. Multiple logins can be specified as a comma-separated list. Depending on the nameservice lookup types set in /etc/nsswitch.conf, the information can come from the /etc/passwd and /etc/shadow files and other nameservices. When the -l and -g options are combined, a user is only listed once, even if the user belongs to more than one of the selected groups. -m Displays multiple group membership information. -o Formats output into one line of colon-separated fields. -p Selects logins with no passwords. -s Selects all system logins. -t Sorts output by login instead of by uid. -u Selects all user logins. -x Prints an extended set of information about each selected user. The extended information includes home directory, login shell and password aging information, each displayed on a separate line. The password information consists of password status (PS for password, NP for no password or LK for locked). If the login is passworded, status is followed by the date the password was last changed, the number of days required between changes, and the number of days allowed before a change is required. The password aging information shows the time interval that the user receives a password expiration warning message (when logging on) before the password expires. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) SunOS 5.10 5 Jul 1990 logins(1M)
All times are GMT -4. The time now is 02:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy