LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-18-2009, 11:49 AM   #1
vigilkumar
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Rep: Reputation: 0
Question anonymous login to ftp


hi i want to know how to allow all the users of a particular domain anonymous access to my ftp server.I also dont want other users other than from this particular domain access my ftp server anonymously.i am using red hat enterprise linux version 4.
 
Old 11-18-2009, 11:58 AM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: Arcadia, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 209

Rep: Reputation: 43
Hmmm....

Well, lets start with which ftp package are you using?

And a question I have would be: Are you going to allow authenticated access from everywhere else? Or is it only out to the web so the folks from that domain can drop you files that can't be emailed?

Let us know.
 
Old 11-18-2009, 12:45 PM   #3
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Quote:
Originally Posted by vigilkumar View Post
hi i want to know how to allow all the users of a particular domain anonymous access to my ftp server.I also dont want other users other than from this particular domain access my ftp server anonymously.i am using red hat enterprise linux version 4.
Depending on the ftp daemons features this may be easily feasible or you might need to turn to an outside source (iptables) to accomplish this. As the previous poster suggested, knowing what ftp daemon you're using is the first step.
 
Old 11-18-2009, 01:54 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Assuming you do not need any external access, you could just set you hosts.allow file appropriately.
 
Old 11-19-2009, 04:21 AM   #5
vigilkumar
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
anonymous login to ftp

i am using the vsftpd daemon.To use the hosts.allow file the vsftpd has to run as a xinetd controlled service; right? if it is so then how should i run vsftpd as an xinetd service so that i can allow anonymous access to users of a particular domain only.
 
Old 11-19-2009, 02:17 PM   #6
ShadowCat8
Member
 
Registered: Nov 2004
Location: Arcadia, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 209

Rep: Reputation: 43
Quote:
Originally Posted by vigilkumar View Post
i am using the vsftpd daemon.To use the hosts.allow file the vsftpd has to run as a xinetd controlled service; right? if it is so then how should i run vsftpd as an xinetd service so that i can allow anonymous access to users of a particular domain only.
Ummm, no. The /etc/hosts.allow file does not need to have inetd/xinetd running to be effective. We do not run (x)inetd at my office at all, though we *do* run sshd, samba, apache, tomcat, etc. and use /etc/hosts.[allow,deny] to get finer access control to services.

But, I am still a bit curious and/or confused as to why you are needing anonymous access to the server from one specific domain. It seems a dangerous way to go for security, IMHO. Is this one of the domains you control and are trying to tie connections between that domain and another?

As far as getting this set up, it would seem that you can definitely use the /etc/hosts.allow file to look for connections coming from the specific domain and for the specific daemon (vsftpd) and have it run a script when the server sees the connection coming in to be able to set up your connection any way you want. I was looking at the vsftpd config manual and it seems like they have the capability of separating the anonymous access away from the regular user access as well if you want.

HTH.
 
  


Reply

Tags
anonymous, ftp, login


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
Problems with anonymous login proftp 1.3.1: 530-Unable to set anonymous priviliges. gentooox Linux - Server 3 05-03-2009 02:46 PM
files uploaded to anonymous ftp not readable by anonymous TheOneAndOnlySM Linux - Software 2 11-04-2004 07:42 AM
how to establish ftp server with proftp to allow anonymous user login icoming Linux - Networking 3 10-12-2004 10:38 AM
Anonymous login FTP hkgonra Mandriva 8 10-07-2003 05:30 PM
ftp says login incorrect - anonymous access works fine?!? wwwgeek Linux - Newbie 2 09-15-2001 12:46 PM


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