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:
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:
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.
To create a user, use the useradd-command. To create a home directory at the same time, use the -m option.
Thank you for the reply, but how can we set the user account to "x" in shadow file? or what do we mean by "X" in shadow file
---------- Post updated at 03:57 PM ---------- Previous update was at 02:46 PM ----------
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:
Sorry below is what i have in the /etc/shadow file
No i am sure the entry is same on both /etc/passwd and /etc/shadow files.
If that's how your shadow file looks, then you're in trouble. Stuff like group membership and login shell are what gets stored in /etc/passwd. The fields in /etc/shadow should all be related to password policy and password hashes. I'm willing to bet they both came from /etc/passwd otherwise your system would be in total failure and that would probably take
It's probably better to focus on _why_ you're interested in getting rid of passwords. If it's to get scripted access to this account from a remote system, you can set up passwordless ssh. If it's for scripted access to the account locally, use sudo.
If it's just to keep from having to enter your password at the login prompt you may ask whether this is really something you want to do and if so just blanking out the hash field will get you out of entering a password on most systems.
For example, where you have:
or
Should become:
I've only tested this on logging into the desktop and from a TTY. Logging in remotely can be taken care of the other way (via ssh) though.
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)
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)
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)
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)
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)
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)
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)
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)
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)