The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 08:31 AM
Sudo file not saved Asteroid UNIX for Advanced & Expert Users 0 07-30-2007 07:18 AM
only root's crontab gets not saved flok UNIX for Advanced & Expert Users 1 06-25-2007 10: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 11:27 PM
I inhereted a Unix server that is password protected...Help! fxsaint UNIX for Dummies Questions & Answers 1 10-26-2000 08:12 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 10-17-2006
hast5 hast5 is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 12
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.
  #2 (permalink)  
Old 10-17-2006
kingdbag kingdbag is offline
Registered User
  
 

Join Date: Jun 2006
Location: Las Vegas, NV
Posts: 104
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.
  #3 (permalink)  
Old 10-18-2006
hast5 hast5 is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 12
Thanks, but are there any standar user and passwords?
  #4 (permalink)  
Old 10-18-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
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.
  #5 (permalink)  
Old 10-18-2006
hast5 hast5 is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 12
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?
  #6 (permalink)  
Old 10-18-2006
tmarikle tmarikle is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2005
Posts: 683
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.
  #7 (permalink)  
Old 10-18-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
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'.
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0