Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 10-26-2005, 09:04 PM   #1
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 ( ) but they can not telnet or ssh to linux box

Old 10-26-2005, 09:26 PM   #2
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.

Old 10-27-2005, 08:27 AM   #3
Registered: May 2005
Location: Greece
Posts: 420

Rep: Reputation: 90
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
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

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

Use Sftp


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 / openSUSE 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 > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration