nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

disable sftp users

This is a discussion on disable sftp users within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Dear All, Is there any way to disable some particular users accessing via sftp. Our setup is only enabled with ...


Go Back   nixCraft Linux Forum > Mastering Servers > Networking, Firewalls and Security

Linux answers from nixCraft.


Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-03-2008, 02:03 PM
Junior Member
User
 
Join Date: Mar 2008
OS: Redhat
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
raudisir is on a distinguished road
Default disable sftp users

Dear All,

Is there any way to disable some particular users accessing via sftp.
Our setup is only enabled with ssh and sftp for Linux.
But i can see some users logging in via sftp and uploading files.So i need to provide restrictions for the users to login via sftp.
Pls can some one help??

cheers
Reply With Quote
  #2 (permalink)  
Old 25-03-2008, 03:23 PM
Junior Member
User
 
Join Date: Feb 2008
OS: Linux
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
chal.arun is on a distinguished road
Default Sftp problem

Hi,
To make the users denying for sftp access , put the user name in "/etc/vsftpd.ftpusers". And make sure to restart the vsftp service after doing this.
Reply With Quote
  #3 (permalink)  
Old 08-05-2008, 12:40 PM
Junior Member
User
 
Join Date: May 2008
OS: RedHat Linux/Fedora/CentOS/Debian
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
manoj.samtani is on a distinguished road
Thumbs up Restrict some SFTP users

Hi there,


you can use rssh script (rssh - restricted shell for scp/sftp) which is used to restrict sftp for some users......

Last edited by manoj.samtani; 08-05-2008 at 12:42 PM. Reason: spell mistake
Reply With Quote
  #4 (permalink)  
Old 13-05-2008, 05:06 PM
agn agn is offline
Member
User
 
Join Date: Feb 2008
OS: OpenBSD/FreeBSD/Debian/Fedora/RHEL
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
agn is on a distinguished road
Default

Am not sure if you can deny access to sftp while allowing access through ssh. sftp runs as a subsystem of ssh. Also I don't really understand the benefits of restricting access to sftp. What exactly are you trying to achieve ?
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
Linux disable network interface jerry Linux software 3 31-01-2009 09:25 PM
Enable/Disable ftp in solaris 10 KuldeepSM Solaris/OpenSolaris 3 04-03-2008 02:43 PM
Linux UNIX SFTP in a Shell Script Nishanthhampali Shell scripting 1 30-01-2008 01:16 PM
Linux disable kernel module / driver sweta Linux hardware 2 21-08-2007 12:38 AM
Redhat linux 4 / 5 disable iptables firewall chiku Networking, Firewalls and Security 0 27-04-2007 05:19 PM


All times are GMT +5.5. The time now is 06:32 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