LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-08-2010, 08:18 AM   #1
Dru-Jitsu
Member
 
Registered: Jun 2010
Posts: 38

Rep: Reputation: 15
grep $LOGNAME /etc/passwd


Code:
JDoe1615:x:2123:2000:DOE, ECA277 :/home/students/10866/JDoe1615:/bin/bash
provided with the information listed can someone touch on all the fields that are displayed?

Last edited by pixellany; 07-08-2010 at 08:24 AM.
 
Old 07-08-2010, 08:20 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I don't understand the question, but already don't have a good feeling about this topic.
 
Old 07-08-2010, 08:21 AM   #3
Dru-Jitsu
Member
 
Registered: Jun 2010
Posts: 38

Original Poster
Rep: Reputation: 15
I am basically just asking for the fields that are displayed.... GID, UID, everything accross
 
Old 07-08-2010, 08:24 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Well, a few of them are obvious:
Username
Path to $HOME directory
Default Shell

What exactly do you need to know?
 
Old 07-08-2010, 08:26 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Google is your friend:
http://www.google.com/search?q=passw...ient=firefox-a
 
Old 07-08-2010, 08:26 AM   #6
Dru-Jitsu
Member
 
Registered: Jun 2010
Posts: 38

Original Poster
Rep: Reputation: 15
Yeah I understand some are obvious but there are a few numbers in there I am not sure what they are, I am just asking if someone can list them across in the order they are so I can see if there is something I am missing on some of those numbers at the beginning.
 
Old 07-08-2010, 08:28 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
See my Google link (we posted at the same time)---Beyond that, what EXACTLY do you need to know?

(The only numbers are the UID and GID)
 
Old 07-08-2010, 08:31 AM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Are you trying to find out somebody's password from that?
 
Old 07-08-2010, 08:33 AM   #9
Dru-Jitsu
Member
 
Registered: Jun 2010
Posts: 38

Original Poster
Rep: Reputation: 15
Yeah that google link was awesome hit it to a TTTTTTTT. I was googling but I couldn't find anything like that. I am just playing around with job control and such trying to get the hang of all of this.
 
Old 07-08-2010, 08:34 AM   #10
Dru-Jitsu
Member
 
Registered: Jun 2010
Posts: 38

Original Poster
Rep: Reputation: 15
NO! I am not trying to figure out anyone's passwd I understand that is in the shadow. All I am doing is playing around with the job control and such learning around linux, I am not trying to hack anyone.
 
Old 07-08-2010, 09:15 AM   #11
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
JDoe1615 - user
x - password
2123 - uid
2000 - gid
DOE, ECA277 - description
/home/students/10866/JDoe1615 - home
/bin/bash - shell
 
Old 07-08-2010, 10:39 AM   #12
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Code:
man 5 passwd
 
Old 07-08-2010, 11:06 AM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by grail View Post
JDoe1615 - user
x - password
2123 - uid
2000 - gid
DOE, ECA277 - description
/home/students/10866/JDoe1615 - home
/bin/bash - shell
The midnight nitpicker strikes......

If "x" were the password, it would be the weakest one on record....

"x" in the second field means that a password has been set. If the field is empty, no password is required, and (IIRC) an "!" means the account is locked.
 
Old 07-08-2010, 08:50 PM   #14
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
nitpicking received
 
  


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
logname doesn't work anymore ThomasRonshof Linux - Software 1 01-29-2010 02:02 AM
User can change their own LOGNAME env variable davidstvz Linux - Newbie 12 08-25-2008 09:34 AM
Get user LOGNAME from a C++ program? davidstvz Programming 1 08-23-2008 02:10 PM
Use of LOGNAME for non-unique user ids Geoff_Hawke Linux - Newbie 1 10-13-2005 12:37 AM
logname: no login name, -bash: [: too many arguments da_kidd_er Linux - General 1 10-27-2004 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:01 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