Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hi guys. My case study is about creating a script that includes password recovery whenever a user forgets his/her password. I was not allowed by my instructor to have the login script of the admin.
So, I created a script in my account that will show only a sample. I have a "useradd" script in which a user can create an account in my account. He/she will enter his/her username, password, answer to 5 questions for password recovery. His/her information will be stored in the "login_users" script. And then, in the "profile" script, he can now have a chance to login.
My main problem is, if he/she entered a wrong password, it goes back to the profile script again without saying the, "did you forgot your password?" and he can't have a chance to choose which to answer in the 5 questions. I think there's a problem in my "login" script and I ask for your assistance.
Also, my problem in the "login" script is, how can I recover an info from a script to another script?? like for example, "pass" is a variable assigned for the real password of the user when he created an account in the "useradd" script, the info is stored in the "login_users" script. how can I access pass in the "login" script I have??
Another is, how can I hide the login_users script, because it should be hidden because all the info of the users are in there including there passwords.
Lastly, how can I hide the password whenever a user logs in. Usually, password is invisible in the login..
You can try my scripts to understand my problems, Thank you.
2. Relevant commands, code, scripts, algorithms:
Here are the related scripts: profile, useradd, userlist, (the login_users script will have a content whenever there's an account added in the useradd script) 3. The attempts at a solution (include all code and scripts):
This is the script in which I'm having a problem, this is my attempted script, 4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Saint Louis University, Baguio City, Philippines, Ms. Castillo, IT 222
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
Last edited by Scott; 03-06-2011 at 06:24 AM..
Reason: Added code tags
I am having the 15 servers which need to do the monitoring
Hi I need a shell script, By which i can log in to multiple servers and execute the commands.. I need to specify the username and password in the scripts.
Please help me to write the script so that it can login with username and... (5 Replies)
Hi all,
I'm a complete newbie to bash scripting, although I have some experience in programming. The thing is that I have a .dmg file on my mac which I protected with a password, and now I've forgotten it.
I remember the first few letters of the password and the characters that represent the... (4 Replies)
Perderabo has made posted a good thread in the FAQ section here: Lost root password / Can't login as root | Unix Linux Forums | Answers to Frequently Asked Questions (6 Replies)
I am trying to access an old email account but cannot recall the password and the backup email account has been closed, also. I need instructions or an expert who can assist recovering my password for web-based email account. (4 Replies)
HI,
I need to write a script ..
when I run this script , will directly goto that remote machine without asking password..
Once it is entered, I needs to transfer some of the log files...
how can I proceed ? (7 Replies)
Discussion started by: hegdeshashi
7 Replies
6. Forum Support Area for Unregistered Users & Account Problems
hello,
my password got lost - and your service to generate new passwords does not work -ive tried it out 50 times the last week or so, never got a single mail from it...
please generate a new password for my account "congo" with mailadress.
thanks.
Thomas (3 Replies)
Hi, I am new to unix and I set a password for a user and now I need to recover what that password was. Is there a way, where as root, I can view what a users passwords is?
Thanks,
Eric (2 Replies)
hi,all
my database (.db) is created by sysbase adaptive server anywhere7.0 ! the user id is DBA. but I lost the password . Could you recovery the passwrod of this db file?
thanks !
iwind (1 Reply)
We recently terminated a developer at my place of employment who created scripts on a windows server (that i do not have access to) that invoke FTP sessions on my UnixWare 7.1.1 servers.
I need to know the password that is being used. Does anyone know of a good password crack? (8 Replies)