nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Login fail message

This is a discussion on Login fail message within the Shell scripting forums, part of the Development/Scripting category; Hey Guys, I just stumbled upon one thing. When I login to SuSE9.3 Pro thru the terminal screen and if ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-11-2005, 01:54 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default Login fail message

Hey Guys,
I just stumbled upon one thing.

When I login to SuSE9.3 Pro thru the terminal screen and if these was an unsuccesful login, it gives a meesage giving the time of the last unsuccessful login.

This phenomena was there from the early Sco Unix days.

But now FC/RHEL don't have it turned ON.

I just want to know how can we turn it ON in FC/RHEL or for that matter Unix or any other NIX flavour. I don't remember but think I was taught/read it somewhere. But don't seem to recollect.

I think it is not related with the distribution. So, I think it is safe to post in the room. Correct me if I am wrong.

Thanks,

rc
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-12-2005, 04:49 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

This error can popup due to various problem, try to start or restart sshd server

Code:
/etc/init.d/sshd start

or

/etc/init.d/sshd restart

or

/sbin/init.d/sshd start
I think suse uses /sbin/init.d/sshd start to start/restart sshd.

If you have sshd running and root is not allowed to loging then open the file:

Open file /etc/sshd.config and look for line
Code:
PermitRootLogin          no
Replace with
Code:
PermitRootLogin          yes
Restart sshd using one of above command
Don't even think of using telnet or rservices they are insecure.

Btw you posted this to shell scripting... make sure next time you post it to Linix so you will get quick reply
Reply With Quote
  #3 (permalink)  
Old 08-12-2005, 05:13 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default

Thank you monk,

I think you got my question wrongly. Anyway, No problem. I want to say that my problem is not related to ssh.

What my question was that I get a message after I successfully logged in thru the console. This message just indicates the Last Successful and Unsuccessful login logs. I mean, when I login, I get a message which tells me when did I last have a successful and an unsuccessful login.

This kind of message helps in keeping track of deliberate attempts of other users who try to guess your password and try to login.

What I wanted to know is how to enable and or disable this message flashing. If suppose I want it on FC/RHEL distribution, what and which file shall I enable?. Do you get me now.

Thanks for the reply and I appreciate it.

rc
Reply With Quote
  #4 (permalink)  
Old 08-12-2005, 09:51 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Hee @ monk

I think pam config needed to enable or disable it ... I'm at uni com right now (xp) but ill get back to home in 2 hrs and then i will post what to edit...
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #5 (permalink)  
Old 08-13-2005, 01:43 AM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Okay this can be enable or disable in your /etc/pam.d/login file by adding following line to it:

Code:
# Prints the last login info upon succesful login
session    optional   pam_lastlog.so
See if it gives login info when it was failed or not and let me know.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Fail to mount remote NFS server satimis Web servers 0 04-19-2008 09:06 PM
F8 - fail to load amd pata driver satimis CentOS / RHEL / Fedora 0 01-25-2008 12:31 PM
fail to telnet localhost 106 satimis Mail Servers 8 12-18-2007 06:16 AM
dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1 raj Mail Servers 1 11-15-2007 11:43 AM
network message anharikrishna Networking, Firewalls and Security 1 09-06-2007 04:02 PM


All times are GMT +5.5. The time now is 03:28 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36