LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 09: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 09:24 AM.
 
Old 07-08-2010, 09:20 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I don't understand the question, but already don't have a good feeling about this topic.
 
Old 07-08-2010, 09: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, 09:24 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 09:26 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Google is your friend:
http://www.google.com/search?q=passw...ient=firefox-a
 
Old 07-08-2010, 09: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, 09:28 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 09:31 AM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,550
Blog Entries: 56

Rep: Reputation: Disabled
Are you trying to find out somebody's password from that?
 
Old 07-08-2010, 09: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, 09: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, 10:15 AM   #11
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,550

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
JDoe1615 - user
x - password
2123 - uid
2000 - gid
DOE, ECA277 - description
/home/students/10866/JDoe1615 - home
/bin/bash - shell
 
Old 07-08-2010, 11: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, 12:06 PM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 09:50 PM   #14
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,550

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
nitpicking received
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

All times are GMT -5. The time now is 07:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration