LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-15-2003, 07:24 AM   #1
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Rep: Reputation: 30
ftp login only


is it possible to create an user account that allow only though ftp but not anything else like ssh/telnet?
 
Old 12-15-2003, 07:48 AM   #2
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
yes.

edit /etc/passwd to look like this....

ftp:x:21:21::/home/ftp:/bin/false

and configure you FTP server to allow FTP access to the user ftp.
 
Old 12-15-2003, 08:14 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 253Reputation: 253Reputation: 253
Quote:
Originally posted by fatgod
yes.

edit /etc/passwd to look like this....

ftp:x:21:21::/home/ftp:/bin/false

and configure you FTP server to allow FTP access to the user ftp.
Don't forget to add /bin/false to your /etc/shells file as well.
 
Old 12-15-2003, 08:31 AM   #4
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
I just noticed some serious ambiguity in my last post as well... only make the ftp users line in /etc/passwd look like that, not the whole file
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
FTP won't login ne21 Slackware 1 12-10-2004 05:48 AM
ftp login only tuxguy Linux - General 3 03-19-2004 09:37 PM
ftp login -- ssh no login waffe Linux - General 4 12-27-2003 12:42 AM
Cannot login with FTP felixmd Linux - Newbie 4 02-05-2002 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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