LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-12-2013, 10:59 AM   #1
lovingaditya28
LQ Newbie
 
Registered: May 2009
Posts: 13

Rep: Reputation: 0
how to make users login to FTP server but at the same time disable SSH


Hi Experts

I installed vsftpd and created new user with /usr/sbin/nologin option, but i am not able to login to FTP server. If i remove nologin option then i can login.

Kindly suggest how to make users login to FTP server but at the same time disable SSH access.

thanks in advance and waiting for your valuable suggestions.
 
Old 12-12-2013, 11:10 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
There are lots of different models you might want to apply here really, who are these users? do they relate to the system as a whole? are they customers?

The simple way to strictly achieve what you're asking for is probably to just use the AllowGroups option on the sshd service to restrict who can log into SSH, but maybe the FTP accounts should be kept out of the system account architecture and held in a separate user database, liek ldap?
 
Old 12-12-2013, 12:50 PM   #3
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Setup vsftpd with virtual users, this would create users those can only login to the vsftpd instance and not the system.

EDIT: a good how_to here.

Last edited by SAbhi; 12-12-2013 at 12:52 PM.
 
1 members found this post helpful.
  


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
[SOLVED] How can I disable the authenticity check when ssh'ing to a server for the first time? abefroman Linux - Server 2 10-04-2013 05:16 PM
[SOLVED] how to enable/disable ssh server,at and not at boot time? wang Linux - Server 8 03-02-2011 08:57 AM
FTP Server and edquota to make ftp users deepak.inss Linux - Newbie 2 01-08-2010 07:24 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration