LinuxQuestions.org
Visit Jeremy's Blog.
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 10-05-2012, 03:09 PM   #1
synicdevil
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
Viewing Password


Hi,

I'm new to Linux and I have a few questions.

Firstly, I would like to know if it is possible to view your own password if you are logged-in into some account. For example, I'm logged-in as 'user'. Is it possible to view the password of 'user' in clear text.

Secondly, similarly can one view root password in clear text if he is logged-in as root.

Thank You.
 
Old 10-05-2012, 04:43 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Hi, Welcome here!

Quote:
Is it possible to view the password of 'user' in clear text.
'fraid not...passwords are stored encrypted, what you ask is a clear security violation of your own system and Linux will not let you...

Quote:
Secondly, similarly can one view root password in clear text if he is logged-in as root.

MOST CERTAINLY NOT!!!!!

That password is NOT for viewing as it could potentially make your system vulnerable to attacks.

Any reason for these quesitons, aside from this reason

Quote:
I'm new to Linux and I have a few questions.


Thor
 
Old 10-05-2012, 04:49 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
Quote:
Originally Posted by Thor_2.0 View Post
'fraid not...passwords are stored encrypted, what you ask is a clear security violation of your own system and Linux will not let you...
Just to make that more clear: passwords aren't stored at all. Only hashes of the passwords are stored. You can't get back to a password from a hash, so it is impossible to see the password of any user in clear text.
 
2 members found this post helpful.
Old 10-05-2012, 04:56 PM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Just to make that more clear: passwords aren't stored at all. Only hashes of the passwords are stored.
Check, it's a detail, but an important one to mention here...incomplete of my part not to have done so...
 
Old 10-05-2012, 10:41 PM   #5
synicdevil
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Not that big a reason for this question.

In my college got the opportunity to sit on root account. So i was wondering how I could use root as I wish
 
Old 10-07-2012, 05:18 AM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
In my college got the opportunity to sit on root account. So i was wondering how I could use root as I wish
Ooo-wow!!! Did someone...hack??? Just kidding! Okay, well, there's a command you can use to find out if you're in "rootmode" so to speak:

Quote:
whoami
...granted, this opens other avenues of thought, if you're asking this question....anyway, you will know exactly what your role is on the system at that point.

By the way, if you've been given this privilege: congrats!!!! That means extreme trust...and something to note on your resume...

Thor
 
Old 10-07-2012, 06:07 AM   #7
zxzxy1988
LQ Newbie
 
Registered: Nov 2011
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Just to make that more clear: passwords aren't stored at all. Only hashes of the passwords are stored. You can't get back to a password from a hash, so it is impossible to see the password of any user in clear text.
Wow, I just think the things in the file are encrypted password, but actually are hash values...
 
Old 10-07-2012, 06:21 AM   #8
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Wow, I just think the things in the file are encrypted password, but actually are hash values...
See? You learn something new every day was a revelation to me as well...

Thor
 
Old 10-07-2012, 06:27 AM   #9
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
http://www.mcmcse.com/linux/password_files.shtml

Here is a explanantion of how the passwords work.
 
1 members found this post helpful.
Old 10-07-2012, 10:26 PM   #10
zxzxy1988
LQ Newbie
 
Registered: Nov 2011
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
See? You learn something new every day was a revelation to me as well...

Thor
So God helps those who help others
 
Old 10-08-2012, 01:58 AM   #11
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
So God helps those who help others
...or...people helping people because it makes them feel good...
(I'm an rescpectfull atheist )
 
Old 10-08-2012, 04:28 AM   #12
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:
(I'm an rescpectfull atheist )
I like it---I think you mean that we can have differing views and still respect each other---what a concept!!

Quote:
In my college got the opportunity to sit on root account. So i was wondering how I could use root as I wish
???If you are "root", you have the power to do just about anything---including totally disabling the system. What is it that you need/want to do, and is it allowed by the owner/admin of the system in question?
 
Old 10-08-2012, 04:31 AM   #13
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
I like it---I think you mean that we can have differing views and still respect each other---what a concept!!
Check...guess what, THAT (mutual respect) is one KEY ingredient that makes us humans
So, goodness to ya, fellow Human!!!
 
  


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
Accessing and viewing information in a database without a login/password? puppymagic Linux - Newbie 7 03-22-2010 06:58 PM
editing/viewing password files qwertyjjj Linux - Newbie 9 08-09-2009 07:57 PM
prevent viewing password bobcat10.44 Linux - Newbie 1 02-17-2009 02:33 PM
Viewing my root password / creating an all permissions user ssobeht Linux - Security 16 11-01-2003 01:25 PM
viewing my password brandonAd Linux - Newbie 7 08-12-2003 11:52 AM

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

All times are GMT -5. The time now is 05:36 AM.

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