nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-08-2005, 12:54 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 12-08-2005, 03:49 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
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 12-08-2005, 04:13 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
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 12-08-2005, 08:51 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
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.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #5 (permalink)  
Old 13-08-2005, 12:43 AM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
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.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
Reply


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 10:24 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38