LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
 
Search this Thread
Old 05-11-2011, 04:44 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 535

Rep: Reputation: 32
How to prevent a user to log in?


Formerly I add a user to the file "/etc/ssh/sshd_config" and run service sshd reload, so that this user can login.

Now the user is gone and I have to block this user. I did as follow:

1. Take out the user name from "/etc/ssh/sshd_config" and run 'service sshd reload' again. But this user can still log in.

Why?

Thomas
 
Old 05-11-2011, 05:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970
where are you adding this user? what is the config which is blocking him? Please show us the sshd_config.
 
Old 05-11-2011, 08:50 AM   #3
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 535

Original Poster
Rep: Reputation: 32
The problem is solved. It's a miss typing.

Last edited by thomas2004ch; 05-11-2011 at 08:51 AM.
 
Old 05-11-2011, 08:57 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Mark the thread as solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How do I prevent a user from being able to log into ssh? scooper Solaris / OpenSolaris 3 04-08-2009 10:50 AM
How to prevent local IP's in apache log? esaym Linux - Server 2 02-17-2007 10:53 PM
C program to see user log on in system and print user with real user name also naveen245 Programming 2 12-21-2005 12:53 AM
How to prevent user from using other apps!?? FreakboY Linux - Security 4 09-08-2005 04:22 AM
Prevent a user from logging into X? sorrodos Linux - Security 6 06-26-2004 03:30 PM


All times are GMT -5. The time now is 05:07 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration