Where are the password saved in a UNIX server?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Where are the password saved in a UNIX server?
# 1  
Old 10-17-2006
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. Smilie
# 2  
Old 10-17-2006
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  
Old 10-18-2006
Thanks, but are there any standar user and passwords?
# 4  
Old 10-18-2006
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  
Old 10-18-2006
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  
Old 10-18-2006
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  
Old 10-18-2006
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'.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to ssh from an AIX OS server to a Fabric OS server without password?

Hi I'd like to ssh from an AIX OS server ( v5.3) to a Fabric OS server ( v6.1.2 ) without password. I tried using dsa or rsa keys but it didn't work, the aix server still asked for the password. Somebody help, please :(:(:( (8 Replies)
Discussion started by: bobochacha29
8 Replies

2. Shell Programming and Scripting

How to scp File from root user in one server to say crt user in another server and avoid password?

Can someone help in writing some script through which I can transfer file (scp) from root user in abc server to crt user in hfg server and can give the crt user password in script itself so that it doesn't prompt me every time for password (4 Replies)
Discussion started by: Moon1234
4 Replies

3. Shell Programming and Scripting

Connect to one server from other server without asking password

Hi , I am using redhat linux 5.I.I need a command or script which need to login from one server to another without asking password.This can be done even providing password on the command line is also fine.I have tries sshpass but it didn't work.ssh key generations is not preferred here. ... (7 Replies)
Discussion started by: muraliinfy04
7 Replies

4. Solaris

Script to get files from remote server to local server through sftp without prompting for password

Hi, I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script. Can anyone help me in automating the script such that it... (3 Replies)
Discussion started by: ssk250
3 Replies

5. Shell Programming and Scripting

Find and delete files and folders which are n days older from one unix server to another unix server

Hi All, Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older. Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Discussion started by: sachinkl
2 Replies

6. Shell Programming and Scripting

Connecting to multiple unix server from unix server using shell script

Hi Gurus, I'm a unix newbie and I would like to connect to multiple unix servers from unix server using shell script i.e from server a to server b,c,d etc. I want to copy the files from unix server a to server b, c, d. I can access staright using ssh without the need to have password and user... (5 Replies)
Discussion started by: sexyTrojan
5 Replies

7. UNIX for Advanced & Expert Users

How to update my account password on 100 unix server ?

Hi We have over 100 unix servers. They include linux,solaris,aix,hp and sgi. I use telnet for some and ssh for rest. Note: none of this server has expect which i can use to update.So i am looking for expert who can help me with their script or guide me write KSH script to automate this. Thank... (6 Replies)
Discussion started by: humaurtum
6 Replies

8. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. Thanks in advance. Phatan:) (2 Replies)
Discussion started by: phatan
2 Replies

9. UNIX for Dummies Questions & Answers

How can I tranfer an OS/ Unix (from old HD to new HD / include all files saved )

-------------------------------------------------------------------------------- How can I tranfer an OS/ Unix (from old HD to new HD / include all files saved ) Could anyone help me out. :confused: Thanks (0 Replies)
Discussion started by: Vietnam
0 Replies

10. UNIX for Dummies Questions & Answers

I inhereted a Unix server that is password protected...Help!

I inhereted a project server that has UNIX installed with a SCO OS. I am trying to learn UNIX but I cannot go beyond the password and login. The original engineers have left the company and nothing was ever written down. How can access our server? (1 Reply)
Discussion started by: fxsaint
1 Replies
Login or Register to Ask a Question