Sponsored Content
Full Discussion: deboucha28
Top Forums UNIX for Dummies Questions & Answers deboucha28 Post 25259 by deboucha28 on Friday 26th of July 2002 12:22:41 PM
Old 07-26-2002
deboucha28

Thank you very much for your expertise, I don't mean to be a dodo bird, I follow the guide lines and did everything you told me. Now I did vi passwd and the machine replies [I don't know what kind of terminal you are on - all I have is Unknown]
{using open mode}
"passwd" [Read only] 16 lines, 571 characters
root:x:0:1:Super-User:/:/sbin/sh.
Now, the link earlier said to remove the x OR encrypted password from the root account - it will be the second field (colon separated fields) I have tried to remove the "x" but I haven't any luck. Your Help is greatly appreciated. Thanks a zillion time.
 
PASSWD(5)						   File Formats and Conversions 						 PASSWD(5)

NAME
passwd - the password file DESCRIPTION
/etc/passwd contains one line for each user account, with seven fields delimited by colons (":"). These fields are: o login name o optional encrypted password o numerical user ID o numerical group ID o user name or comment field o user home directory o optional user command interpreter The encrypted password field may be blank, in which case no password is required to authenticate as the specified login name. However, some applications which read the /etc/passwd file may decide not to permit any access at all if the password field is blank. If the password field is a lower-case "x", then the encrypted password is actually stored in the shadow(5) file instead; there must be a corresponding line in the /etc/shadow file, or else the user account is invalid. If the password field is any other string, then it will be treated as an encrypted password, as specified by crypt(3). The comment field is used by various system utilities, such as finger(1). The home directory field provides the name of the initial working directory. The login program uses this information to set the value of the $HOME environmental variable. The command interpreter field provides the name of the user's command language interpreter, or the name of the initial program to execute. The login program uses this information to set the value of the $SHELL environmental variable. If this field is empty, it defaults to the value /bin/sh. FILES
/etc/passwd User account information. /etc/shadow optional encrypted password file /etc/passwd- Backup file for /etc/passwd. Note that this file is used by the tools of the shadow toolsuite, but not by all user and password management tools. SEE ALSO
crypt(3), getent(1), getpwnam(3), login(1), passwd(1), pwck(8), pwconv(8), pwunconv(8), shadow(5), su(1), sulogin(8). shadow-utils 4.1.5.1 05/25/2012 PASSWD(5)
All times are GMT -4. The time now is 09:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy