The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script in saved in compress format naveeng.81 Shell Programming and Scripting 1 04-14-2008 05:31 AM
Sudo file not saved Asteroid UNIX for Advanced & Expert Users 0 07-30-2007 04:18 AM
only root's crontab gets not saved flok UNIX for Advanced & Expert Users 1 06-25-2007 07:50 AM
How can I tranfer an OS/ Unix (from old HD to new HD / include all files saved ) Vietnam UNIX for Dummies Questions & Answers 0 08-04-2006 08:27 PM
I inhereted a Unix server that is password protected...Help! fxsaint UNIX for Dummies Questions & Answers 1 10-26-2000 05:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-2006
Registered User
 

Join Date: Oct 2006
Posts: 12
Stumble this Post!
Where are the password saved in a UNIX server?

I was wondering where are the password saved in a UNIX server?
And are there som standar user and pass?

Thanks for answering me. And sorry if this was a really stupid question.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-17-2006
Registered User
 

Join Date: Jun 2006
Location: Las Vegas, NV
Posts: 104
Stumble this Post!
The traditional location for the Unix password file is /etc/passwd.

On a Unix system with either NIS/yp or password shadowing, much of the Unix password data may be stored elsewhere.
Reply With Quote
  #3 (permalink)  
Old 10-18-2006
Registered User
 

Join Date: Oct 2006
Posts: 12
Stumble this Post!
Thanks, but are there any standar user and passwords?
Reply With Quote
  #4 (permalink)  
Old 10-18-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
Stumble this Post!
Sure, let me tell you all about the TOP SECRET unix password common to ALL MACHINES EVERYWHERE that only 3l33t h@xx0rz know.

I mean... uh...

Not really.
Reply With Quote
  #5 (permalink)  
Old 10-18-2006
Registered User
 

Join Date: Oct 2006
Posts: 12
Stumble this Post!
Quote:
Originally Posted by Corona688
Sure, let me tell you all about the TOP SECRET unix password common to ALL MACHINES EVERYWHERE that only 3l33t h@xx0rz know.

I mean... uh...

Not really.
You know? That wasent funny................
I know now that on your UNIX you have a root
but that dosent have any password before you activate it.
You see... I am learning, so please dont be so sarkastic. //dont know how to spell it.

But you did say something about passwd in there I found this..
But I dont know what it means:

root:x:0:0::/root:/bin/bash
bin:x:1:1:bin:/bin:
daemon:x:2:2:daemon:/sbin:
adm:x:3:4:adm:/var/log:


Can someone tell me about it?
Reply With Quote
  #6 (permalink)  
Old 10-18-2006
Registered User
 

Join Date: Jan 2005
Posts: 682
Stumble this Post!
I haven't been a UNIX admin for more than 10 years but here is a very brief synopsis:

/etc/passwd contains UNIX logons, their encrypted passwords perhaps still on some systems, their UID, default GID, what's known as the gecos field (informational), and the user's home directory.

/etc/shadow now days augments the /etc/passwd file by holding the encrypted version of the password.

There are some common accounts on UNIX systems such as root, daemon, bin, sys, lp, etc.
Reply With Quote
  #7 (permalink)  
Old 10-18-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
Stumble this Post!
Quote:
Originally Posted by hast5
You know? That wasent funny...
Wasn't meant to be. We get "help I forgot the root password" posts all the time but almost never get asked without at least telling us anything at all about situation.
Quote:
I know now that on your UNIX you have a root but that dosent have any password before you activate it.
your unix? which unix?
Quote:
But you did say something about passwd in there I found this..
But I dont know what it means:

root:x:0:0::/root:/bin/bash
bin:x:1:1:bin:/bin:
daemon:x:2:2:daemon:/sbin:
adm:x:3:4:adm:/var/log:

Can someone tell me about it?
Syntax of lines in /etc/passwd is:

username:passwordhash:uid:gid:undefined:homedir:loginshell

When the password hash is x, that means it's stored somewhere else, possibly /etc/shadow. It's not stored plaintext, but as an unrecognizable hash. When someone tries to login, it hashes what they type and compares the hashes.

You don't edit any of these files yourself, you use the passwd command. See 'man passwd'.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0