• We had to restore from a backup today after a failed software update. Backup was from 0000 EDT and restored it at 0800 EDT so we lost about 8hrs. Today is 07/20/2024. More info here.

Shadow password in command line

Gokul

New Member
Joined
Jan 5, 2018
Messages
16
Reaction score
11
Credits
0
hai , I am creating an address database script,I need to create a shadow password when user enter in command line.
welcome all if any help related to this.
 


I'm not sure what you mean by Shadow password, but if you want to get a password from a user in a shell script and hide what the user types you can do this:
Code:
echo -n "Enter password: "
read -s passwordVariable
The -s parameter to read prevents read from echoing what the user types. So when they enter their password, it will not be shown on-screen...

Hope this helps!
 
I'm not sure what you mean by Shadow password, but if you want to get a password from a user in a shell script and hide what the user types you can do this:
Code:
echo -n "Enter password: "
read -s passwordVariable
The -s parameter to read prevents read from echoing what the user types. So when they enter their password, it will not be shown on-screen...

Hope this helps!
Yeah i got it already and thanks for your concern
 


Top