Sponsored Content
Full Discussion: user Id vs Password
Top Forums UNIX for Dummies Questions & Answers user Id vs Password Post 7410 by LivinFree on Wednesday 26th of September 2001 03:55:46 AM
Old 09-26-2001
Well, as is indicated by their names, UserID is what identifies you to the machine you are logging in to. The Password is a (hopefully) unique string that only the owner of that account should know. This keeps others from logging in to your account.

The Unix password file (/etc/passwd) contains the following fields for each user ->
name:passwd:uid:gid:gecos:dir:shell

* The name is the UserID.

* Password is, well, the password (This is either stored in encrypted form, so that no one can know your password just by looking at this file, or stored in a different file, called 'shadow'. If the password is stored elsewhere, there will be an 'x' in the password field).

* The UID is your UserID - a number unique to your system that identifies you to the computer ( sort of like a hostname like slashdot.org is another name for the IP address 64.28.67.150 ).

* The GID is a GroupID - you can belong to different groups to identify you further.

* GECOS is leftover from the old (you guessed it) GECOS operating system - this give even friendlier information, depending on how it is set up, like your full name, department, office number, phone number, so on...

* The DIR is your home directory - when you log in, this is where you will be, and most likely where you store all of your files.

* The shell field tells the computer what "shell" to use, like ksh, sh, bash, csh, and so on... The shell is what you type into - it "translates" to make the commands you type run. It talks (pretty much) directly to the core of the Operating System.

Anyhow, this now concludes the short passwd tutorial. Hope that helped!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can't change password for a user

All, I am unable to change a password for the user called : poller I am logged in as root When I do the following command passwd poller New Password: Permission denied Whe i enter the new password, it gives the above error. When i log in as poller and then execute the command, then... (2 Replies)
Discussion started by: rahulrathod
2 Replies

2. AIX

changing user password

I have 02 servers: - Linux RHEL AS 3 (server1) - AIX 5.2 (server2) Running the command rsh server2 passwd derje from the server1 to change derje user password on server2, give me this error: 3004-709 Error while changing the password for "derje" Can somebody help me ? (0 Replies)
Discussion started by: mayge
0 Replies

3. UNIX for Advanced & Expert Users

password verification verify password of a user for only first 8 characters

Helo , I m using linux pam library for user and its password authentication. I m creating new user and giving its password.I m giving password of 10 characters.now when I login in as that newly created user its ask me $ su - ram Password: You are required to change your password immediately... (12 Replies)
Discussion started by: amitpansuria
12 Replies

4. UNIX Desktop Questions & Answers

root user and password

Hi Can anyone help me with a query? Is a password mandatory for the root user. I'm studying for Solaris SCSAS and one of the answers implies that it is not. I've googled but not getting much in the way of an answer. thanks (2 Replies)
Discussion started by: tmn0004676
2 Replies

5. UNIX for Dummies Questions & Answers

Print user password

Hi everyone. I have root acces to an Ubuntu machine. This machine have several users so, being root, I can access to their account without knowing their password, simply usingsudo su userBut I need to know the password of a specific user, so in this situation, is there a technique to know what is... (3 Replies)
Discussion started by: canduc17
3 Replies

6. Solaris

cant set password for user

hi everybody i cant set password for user (jam) i tried to #passwd jam enter newpasswd : after enter it showing passwd : cannot get default domain:internal yp server or client error i also check cat /etc/shadow file jam:*:LK*:........ user is locked ... and i... (4 Replies)
Discussion started by: coolboys
4 Replies

7. AIX

Removing the password of a user

Hi Experts, According to the manual if you want to remove the password for a user account the "password" field in /etc/security/passwd should be set to "*" So instead of this: password = 6BqaLx8FeI8os Should be set to this: password = * But when I run the following command in my AIX... (5 Replies)
Discussion started by: livehho
5 Replies

8. 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

9. Linux

Not able to change user password

hi I am not able to change user password from root user. although it is saying updated successfully. but still I am not able to login direct to abc user. however I can login from root user by using su - abc # passwd abc Changing password for user abc. New password: BAD PASSWORD: it... (2 Replies)
Discussion started by: scriptor
2 Replies
File::HomeDir::Unix(3pm)				User Contributed Perl Documentation				  File::HomeDir::Unix(3pm)

NAME
File::HomeDir::Unix - Find your home and other directories on legacy Unix SYNOPSIS
use File::HomeDir; # Find directories for the current user $home = File::HomeDir->my_home; # /home/mylogin $desktop = File::HomeDir->my_desktop; # All of these will... $docs = File::HomeDir->my_documents; # ...default to home... $music = File::HomeDir->my_music; # ...directory $pics = File::HomeDir->my_pictures; # $videos = File::HomeDir->my_videos; # $data = File::HomeDir->my_data; # DESCRIPTION
This module provides implementations for determining common user directories. In normal usage this module will always be used via File::HomeDir. SUPPORT
See the support section the main File::HomeDir module. AUTHORS
Adam Kennedy <adamk@cpan.org> Sean M. Burke <sburke@cpan.org> SEE ALSO
File::HomeDir, File::HomeDir::Win32 (legacy) COPYRIGHT
Copyright 2005 - 2011 Adam Kennedy. Some parts copyright 2000 Sean M. Burke. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.14.2 2012-01-25 File::HomeDir::Unix(3pm)
All times are GMT -4. The time now is 09:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy