LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 10-26-2005, 09:04 PM   #1
farhank
LQ Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
only FTP access to user not ssh or telnet


Dear all
i wanna create some users hving only FTP access not ssh or telnet

like ftp users can upload n download data from web ( ftp:server.com ) but they can not telnet or ssh to linux box

Thanks
Farhan
 
Old 10-26-2005, 09:26 PM   #2
mhiggins
Member
 
Registered: Feb 2004
Posts: 140

Rep: Reputation: 15
1st turn off telnet! If there are a small number of users you can add the DenyUsers option to your sshd_config. If there are a bunch of users create an ftp group and add users to that group then use the DenyGroups option in your sshd_config.

-Matt
 
Old 10-27-2005, 08:27 AM   #3
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 374

Rep: Reputation: 55
As mhiggins mentioned disable telnet (if you don't have it disabled already).

Then you can deny them in sshd_config as mhiggins suggested or you can use "/bin/true" or "/bin/false" as their shell
and add it to "/etc/shells"
This way they are permitted to FTP (because their shell is in /etc/shells) but they can't ssh (or login in any other way) because
they don't have a valid shell.
 
Old 10-27-2005, 09:30 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
If you disable telnet for unecrypted traffic, then disable also ftp

Use Sftp
 
  


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
Getting FTP, TELNET , or SSH to work jst1 Suse/Novell 1 03-08-2005 08:54 PM
Can ping but can not telnet/ftp/ssh my box fbarre Linux - Networking 10 04-20-2004 12:11 AM
Basic Linux Networking and setting up ssh/telnet/ftp user accounts... timmy_laf Linux - Newbie 2 01-05-2004 02:07 AM
FTP and Telnet Access Flossie Mandriva 5 10-23-2003 10:37 AM
Failing to connect to TELNET, FTP or SSH dbadft Linux - Networking 10 04-16-2003 02:44 PM


All times are GMT -5. The time now is 08:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration