LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-03-2011, 12:53 AM   #1
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
How can Block a user not to login using ssh


Hi
i had configured ftp acc

useradd -d /home/bkup saravana
setfacl -m u:saravana:rwx /bkup

i want the user to access the /home/bkup alone.i want to disable him to login via ssh can some one help me how can i enable in centos distro os
 
Old 12-03-2011, 01:05 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
sshd_config has two directives

DenyUsers
AllowUsers

There is also an "AllowGroups" directive that can be used say, to create a "ssh" group, and only allow users in said group to login via ssh.

I believe these directives also support wildcards.

Last edited by fukawi1; 12-03-2011 at 01:07 AM.
 
1 members found this post helpful.
  


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
How to block a specific user to run SSH and leave him the access to FTP ? frenchn00b Linux - General 3 06-19-2010 11:18 PM
Block root user for login in Graphical mode for security sandeeprhce5 Linux - Server 0 04-10-2009 09:02 AM
How to Block User Login minil Linux - Security 6 12-19-2005 09:00 AM
How do I block IP's to prevent unauthorized SSH login attempts? leofoxx Linux - Security 6 05-23-2005 09:36 PM
HELP me on SSH User login manya Linux - Security 1 05-03-2004 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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