LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-28-2007, 02:11 AM   #1
dhanabalanb
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
read uid of a last user


What is the command to read a uid of a last user in a /etc/shadow file?
 
Old 07-28-2007, 03:32 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What do you mean by "last user"?

The /etc/shadow file doesn't contain the UID number. The /etc/passwd file does.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user and group names from uid and gid PatrickNew Programming 3 06-02-2007 09:26 PM
How to add a user with UID =500 KWTm Ubuntu 1 10-29-2005 11:47 AM
FREEBSD5.3 platform: PHP setcookie() successful, but $uid = $_COOKIE['uid']; fail tclwp Programming 1 03-30-2005 08:05 PM
Getting uid and/or username of logged in user rjstephens Programming 5 09-23-2004 05:02 PM
Changing User IDs (UID) totalcommand Linux - Newbie 5 06-06-2003 06:47 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration