command to retrieve user information


 
Thread Tools Search this Thread
Operating Systems Solaris command to retrieve user information
# 1  
Old 10-09-2008
command to retrieve user information

Hi,

I want the command to retrieve the existing user information such as

* authorization
* Profile
* role
* exipre(expiration date of login)
* inactive

please tell me how to do that
Thank you.
# 2  
Old 10-09-2008
the required info can be retrieve from /etc/passwd and /etc/shadow file

can u be bit elaborate as what u mean by
authorization
Profile
role

expiration - you can get from /etc/shadow
inactive - again from /etc/shadow in the second column u can look for *LK* against the username

Last edited by kumarmani; 10-09-2008 at 02:50 AM..
# 3  
Old 10-09-2008
thank you kumarmani.

I have found all the fields by your idea

* authorization- cmd:auths username (or from etc/user_Attr)
* Profile - cmdSmilierofiles username (or from etc/user_Attr)
* role - cmd:roles username (or from etc/user_Attr)
* exipre(expiration date of login) -8th filed in etc/passwd
* inactive -7th filed in etc/passwd

thank you very much
# 4  
Old 10-09-2008
There are actually commands to get the roles, authorizations and profiles for a given user.

They are cleverly named roles, auths and profiles.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris commands to retrieve chipset information

I need to know what are the commands in Solaris to retrieve the below information about the hardware platform. 1. Chipset information (information about various hardware controller cards on the mother boards, system BIOS versions, PCI firmware version etc..) 2. Serial number of the work... (2 Replies)
Discussion started by: rajujayanthy
2 Replies

2. Shell Programming and Scripting

Match and retrieve information from file

Hello I just want to ask how to get the match of information column 2 file 1 and retrieve information from column 2 file 2. The column exon in file 1 and column color code in file 2. File 1 //NODECOLORCODE "Exon 1" "ENST00000595813" //NODECOLORCODE "Exon 1" ... (4 Replies)
Discussion started by: Wan Fahmi
4 Replies

3. Shell Programming and Scripting

Retrieve information Text/Word from HTML code using awk/sed

awk/sed newbie here. I have a HTML file and from that file and I would like to retrieve a text word. <font face=arial size=-1><li><a href=/value_for_clients/Tokyo/abc_process.txt>abc</a> NDK Version: 4.0 </li> <font face=arial size=-1><li><a... (6 Replies)
Discussion started by: sk2code
6 Replies

4. UNIX for Dummies Questions & Answers

Clipboard retrieve/paste command

I mainly use Max/MSP for my audio programming, but today I am working on a project that requires the use of shell. Is it possible to do this? Retrieve the contents of the clipboard. Send a keystroke to an application without loosing focus, for example, I want to initiate a paste command (with... (0 Replies)
Discussion started by: fhill2
0 Replies

5. Shell Programming and Scripting

Execute a C program and retrieve information

Hi I have the following script: #!/bin/sh gcc -o program program.c ./program & PID=$! where i execute a C program and i get its pid. I want to retrieve information about this program (e.g memory consumption) using command top. So far i have: top -d 1.0 -p $PID But i dont know how to... (6 Replies)
Discussion started by: nteath
6 Replies

6. UNIX for Dummies Questions & Answers

User cannot retrieve email once his /home directory was moved

Hi, We run an IMAP server at work. I had to move the home directory of one user to another partition. I updated his account in /etc/passwd. For some reason his Microsoft Outlook account cannot rertrieve his new emails. I check /var/spool/mail and his emails are there... Any advice? (1 Reply)
Discussion started by: mojoman
1 Replies

7. Shell Programming and Scripting

how to retrieve only the Use% value from df command

when I do a df -k for a particular mount i get the result like this Filesystem 1K-blocks Used Available Use% Mounted on /dev/ 4128448 3527496 391240 91% / I need to extract the value 91 from this and use it in my script in an if condition. How will i do it Please advice. (8 Replies)
Discussion started by: codeman007
8 Replies

8. Shell Programming and Scripting

A script pls( To retrieve database information)

KSH - Unix -AIX - db2 ************** Get the input from the user say '123' (It varies) Then i want to connect to a database say "D1" then i want th extract from the database by giving "select * from tablename where input = '123' I also want to connect to another database "D2" then i... (3 Replies)
Discussion started by: rollthecoin
3 Replies

9. UNIX for Dummies Questions & Answers

How to retrieve the typed command

For examples, I have typed 4 commands in the command prompt: ls -la rm -rf /home/user1 du -k /home find . -name "abc.out" -print And now I want to retrieve the command which begin with letter "r" (i.e. rm -rf /home/user1), what can I do? (5 Replies)
Discussion started by: laum
5 Replies
Login or Register to Ask a Question