Compare Given Password And Regexp With Password Length

Hello friends,

I want to compare regexp and password, Including password length using shell script.

password=az*12345
regexp=^[a-zA-Z]{2}[*][0-9]{5}$

please let me know
thanks in advance.


Similar Content



How To Pass String Variable As Command Parameter In Shell Script?

Hello Friends,

I want to pass string variable with its value taken by user as command parameter in shell script, example below:-

echo "Enter New Password:="
read password


perl -pi -e
's/PASSWORD=.*?,/$password,/' abc.txt

Please let me know...
Thanks In advanced.

Changing Password To A User

Hi
When i tried to change the password for a particular user as a root by using usermod command I didn't see any error at that time.But later when I tried to login again it is not accepting the new password as well as old password.Why its happening?Any help....

New Password Not Working In Software Centre.

Hi, I forgot my password so went into root to change it.

From grub menu, Ubuntu : advanced options : ubuntu recovery : network : root

input passwd then typed in a new password and re-entered password. rebooted.

Tried to uninstall Firefox from software centre but the new password was not accepted for authentication.

Could anyone advise what the problem could be or suggest what I may have done wrong. The password appeared to be accepted ok in root. Thanks

Had Ubuntu Installed And Realized That I Don't Know Root Password

Hi everybody,

I used to be a Linux developer, but I have not used Linux or anything UNIX-like for a long time (more than 10 years). I had it installed by someone else and assumed that the root password is not set. Turned out - it has been. I can logged in as "owner" because I have guessed the password ("password") but no such luck with root. Can anything (other than reinstallation) be done? Is there some default password that root gets at installation that someone at this forum knows? Any other suggestions?

Thank you in advance.

Roman

Centos 5.5 Need To Reset Gui Password Not The Root Password

I found an old laptop that has centos 5.5 installed. I reset the root password, but I need to reset the gui password. Is there a way to view this password or reset it? I have not worked with Linux over 5 years and am rusty on all the commands

Password Problems [Elementary OS Luna]

Hello everyone,

I am not a real n00b at linux but this question is kinda newbisch: I disabled a password for my profile and now i am trying to use sudo but I'm asked to enter a password. I have tried any possible password but I can't unlock it. Please Help!

I own a brandless PC with an Intel Celeron 3.06Ghz processor.
An Intel motherboard
The OS on this PC is Elementary OS Luna

Again please help me.

Very Kind Regards,
mrjenskay

Router Username And Password

is there a way via terminal to reset the username and password for my router?
i have recently started working with the terminal and in order to use ssh im going to need to download some software and enter the username and password for the router which i havent a clue what it is. im not sure i ever set the username and password on it????

if i could re make the username and password for my router i would then be able to get this ssh working.

or is this not possible?

Setting Root Password

Wow, I got my new Linux pc yesterday and it's very very fast. It's faster than my new MacBook.
So I go to the user account which also says administrator so I'm presuming that's the root owner?????? and I typed in my name and changed the password. The guy who sold it to me named the password user and the computer user. Yet when I go to the terminal my username and computer is still called user@user
How do I change the root password and computer name?

Setting Root Password

Wow, I got my new Linux pc yesterday and it's very very fast. It's faster than my new MacBook.
So I go to the user account which also says administrator so I'm presuming that's the root owner?????? and I typed in my name and changed the password. The guy who sold it to me named the password user and the computer user. Yet when I go to the terminal my username and computer is still called user@user
How do I change the root password and computer name?

Passing Password To Encfs

There is an option in encfs:

--extpass=program Use external program for password prompt

I want to use such program for this:

#!/bin/bash
zenity --entry --title="password dialog" --text="Enter your _password:" --hide-text

But how can I pass such obtained password to entfs call?

Any idea?