LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-02-2004, 08:58 PM   #1
kuna
LQ Newbie
 
Registered: Dec 2004
Location: Canada
Posts: 7

Rep: Reputation: 0
Validating user name/password


I have a menu that is display from a script file menu.sh

I would like, before displaying the menu, to ask for a user name and password and validate that user name/password with the current users that are already define in the Linux System (RedHat9).

Can someone help me with this issue? I'm not to familiar with Linux.

Someone told me that I can start my menu from the shell and the shell will ask me for a user name/password !?!?!

kuna
 
Old 12-02-2004, 10:39 PM   #2
hk_linux
Member
 
Registered: Nov 2004
Location: India
Distribution: RedHat, PCQLinux, Fedora
Posts: 95

Rep: Reputation: 15
Can u eloborate more. Before loggin into the shell, u are giving the username and password. Why do u want to validate it again?

I guess u dont want to present a shell to the user and start the menu.sh directly. In that case, go to /etc/passwd and edit the last column, which states /bin/bash (or watever shell). Change it to ur script menu.sh (with full path).

Then when u give the user name and password of that user, instead of shell, the menu.sh will be directly executed.

HTH.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
validating.... javier_ccs Programming 5 06-15-2005 08:22 AM
Samba -- XP user can log in to shares but smbclient user always gets password errors ejoe Linux - Software 3 04-18-2005 10:55 AM
what is the command to make a user change their password after creating a new user? naweenio Linux - Newbie 7 01-05-2005 07:07 AM
validating user input blanks Programming 3 09-02-2004 03:47 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration