Sponsored Content
Full Discussion: Add a user with no password
Operating Systems Linux Add a user with no password Post 302728311 by prash358 on Wednesday 7th of November 2012 03:38:49 PM
Old 11-07-2012
Quote:
Originally Posted by hergp
This is not, what a shadow file looks like. If you look closer, you will see, that both lines are identical and they are from the passwd file. A shadow file entry looks like this:

Code:
test:$6$rW7KQGB/$ir3tl2gier.4PuoNtoQAecl/FtXBCF87bGsJJ4uAoWhFhpko3ae4hKlIZDFjrhPigdl.vX4uh1DXSTReGI.Wz0:15628:0:99999:7:::

No i am sure the entry is same on both /etc/passwd and /etc/shadow files.

---------- Post updated at 02:38 PM ---------- Previous update was at 02:35 PM ----------

Btw if i want to run a script with user "test" and there should be a home directory created for the user, how should i create the account?

when i issued below command, so looks like it is passworded, but thwn i look it in /etc/passwd and /etc/shadow files there is X as mentioned above.

Quote:
# passwd -s test
test PS
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

user Id vs Password

Hello out there in unix.com land. I am Cerberus and this is my first post. I am brand new to Unix and i have a quesiton for you all. Relating to the Unix Password File Setup, what is: User ID? Password? any insite comparing one to the other as far as specifics would be greatly... (2 Replies)
Discussion started by: Cerberus
2 Replies

2. Shell Programming and Scripting

How to add new user and password through script

Hi Everybody I want to write a script in solaris that will add user and set his password. How I will do that. Moreover, if anybody knows where can i find documentation, material and downloads for sample scripts in solaris then please tell me. Thanx Ehsan (1 Reply)
Discussion started by: ehsan
1 Replies

3. UNIX for Dummies Questions & Answers

Add User and Password

hello i have some probelm in the Unix Sun system ....so anyone can u help me how to sovle the problem : 1.how to add the user name and password. 2.list out the command.. Thank You (1 Reply)
Discussion started by: alan thui
1 Replies

4. UNIX for Advanced & Expert Users

control user password

I have two unix server ( eg. they are Server A , Server B ) and want to use LDAP to control the user profile , each of these servers have some database and application are running , assume I have setup Server A as LDAP server . Now I am not too understand the practice of it, could anyone can advise... (0 Replies)
Discussion started by: ust
0 Replies

5. Solaris

help adding a new user/password

I just installed Solaris 10 yesterday and I need to create a new username and password. I'm new to the system and I have yet to learn my way around. I appreciate all help and thank you in advance. (5 Replies)
Discussion started by: bones
5 Replies

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

7. Shell Programming and Scripting

switch as another user without password

I want to switch as another user without using password .Is it posiible ? I have one server B and I have logged in as username u1 but I want to login to that same server using username as u2 but I don't want to give the password for u2. (3 Replies)
Discussion started by: maitree
3 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. Red Hat

User password reset

Hello - I want to reset user password in multiple server via root ID. I have passwordless authentication for root between all the servers. I an use loop to reset the password. I am using below command in loop echo mypassword | passwd username --stdin However, if anyone sees history - he... (5 Replies)
Discussion started by: saurabh84g
5 Replies
pwconv(1M)                                                System Administration Commands                                                pwconv(1M)

NAME
pwconv - installs and updates /etc/shadow with information from /etc/passwd SYNOPSIS
pwconv DESCRIPTION
The pwconv command creates and updates /etc/shadow with information from /etc/passwd. pwconv relies on a special value of 'x' in the password field of /etc/passwd. This value of 'x' indicates that the password for the user is already in /etc/shadow and should not be modified. If the /etc/shadow file does not exist, this command will create /etc/shadow with information from /etc/passwd. The command populates /etc/shadow with the user's login name, password, and password aging information. If password aging information does not exist in /etc/passwd for a given user, none will be added to /etc/shadow. However, the last changed information will always be updated. If the /etc/shadow file does exist, the following tasks will be performed: Entries that are in the /etc/passwd file and not in the /etc/shadow file will be added to the /etc/shadow file. Entries that are in the /etc/shadow file and not in the /etc/passwd file will be removed from /etc/shadow. Password attributes (for example, password and aging information) that exist in an /etc/passwd entry will be moved to the corre- sponding entry in /etc/shadow. The pwconv command can only be used by the super-user. FILES
/etc/opasswd /etc/oshadow /etc/passwd /etc/shadow ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
passwd(1), passmgmt(1M), usermod(1M), passwd(4), attributes(5) DIAGNOSTICS
pwconv exits with one of the following values: 0 SUCCESS. 1 Permission denied. 2 Invalid command syntax. 3 Unexpected failure. Conversion not done. 4 Unexpected failure. Password file(s) missing. 5 Password file(s) busy. Try again later. 6 Bad entry in /etc/shadow file. SunOS 5.10 9 Mar 1993 pwconv(1M)
All times are GMT -4. The time now is 03:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy