LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-02-2012, 07:07 AM   #1
ukjaiswal
LQ Newbie
 
Registered: Mar 2009
Location: Bangalore
Distribution: Gentoo, Debian
Posts: 2

Rep: Reputation: 0
Customized shell login for third value besides username/password


Hi,

I was wondering if it is possible to modify the shell login so that besides username and password, the system also prompts for a third value, say ticket number.

If possible, can this value be logged in some file similar to wtmp?

Regards,
Uk-
 
Old 05-02-2012, 07:31 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You could add the request for ticket number and the write to a log file into /etc/bashrc or /etc/bash_profile so that each user that logs in is required to input the ticket number then. You could even set that so it logs the user out if they DON'T input the requested information. (This assumes your users are all using bash - for other shells other login environment setting files would be modified e.g. /etc/profile for ksh or /etc/csh.login for csh.)

That would be the simplest way.

Otherwise you'd have to muck with PAM modules to achieve the effect you want.
 
  


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
Unknown login username and password Gaby Wilkens Linux - Newbie 22 04-24-2010 03:13 PM
how to login without username and password? sudeepak Fedora 3 12-22-2009 12:35 PM
username and password login Clarence27 Ubuntu 3 10-17-2006 03:47 PM
Live CD login Username/Password??? Anthony1uk Linux - Newbie 3 06-03-2005 11:01 AM
login problems after username and password safra Linux - Newbie 6 07-01-2002 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:15 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