Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-12-2005, 05:05 PM
|
#1
|
Member
Registered: Jul 2004
Location: Metro Detroit
Distribution: SUSE 10, 11.1 & DSL
Posts: 35
Rep:
|
VSFTPD - Public Access - How?
In setting up VSFTP I would like to allow full public (read only) access. Public enough so that Windows users on the LAN can easier retreive files with IE without the need to type in a username or password. Security beyond that is of little concern since this sn isolated network w/o 'net access.
Here is my vsftpd.conf file. It works fine but requires a manual login with username of "anonymous". I would love to circumvent even that.
***
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=NO
listen=YES
tcp_wrappers=YES
***
Any suggestions?
Thank you in advance for any assistance!
Chris
|
|
|
02-12-2005, 09:41 PM
|
#2
|
Member
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104
Rep:
|
pretty sure that you can't just allow connections in without authenticating. If its on a LAN, samba may be a better option if typing 'anonymous' and a dummy email address is too much effort for your users...
|
|
|
02-13-2005, 12:44 AM
|
#3
|
LQ Newbie
Registered: Jan 2005
Location: London
Posts: 21
Rep:
|
Well, To allow LAN users on Windows OS to read-only access on linux VSFTP without providing username and password. You need to make certain changes in your /etc/vsftpd.conf file, as folows :
anonymous_enable=YES
Comment out these lines:-
local_enable=YES
write_enable=YES
and that's sit. you don't have to make other changes. after it, save and exit with "wq" and restart the service and make sure that firewall service is stop or configured to allow FTP access.
You can check firewall access to use "redhat-config-securitylevel" command or try to use "setup" command and choose firewall configuration option and from there, choose customize and allow FTP access.
Alternatively, You can just stop the service with "service iptables stop" command.
Then, run "service vsftpd restart" twice.
That's sit.
Go to any windows computer on LAN and go to IE. Type
"ftp://IPaddress_of_FTPserver" and you'll be in.
Bye......
With Warm Regards
Wadhwa, Gaurav
|
|
|
02-13-2005, 09:24 PM
|
#4
|
Member
Registered: Jul 2004
Location: Metro Detroit
Distribution: SUSE 10, 11.1 & DSL
Posts: 35
Original Poster
Rep:
|
Thank you for the suggestion. However after making the edits, the results are the same. Perhaps SAMBA is the way to go. I was hoping to avoid that path for a few issues.
Nevertheless, I know that having unhindered (read-only) FTP access is possible. I just never thought it would be quite so difficult.
Chris
|
|
|
02-14-2005, 10:27 PM
|
#5
|
Member
Registered: Jul 2004
Location: Metro Detroit
Distribution: SUSE 10, 11.1 & DSL
Posts: 35
Original Poster
Rep:
|
Got it!
Ok, I found the problem. The firewall on my workstation did not have the Ethernet device selected as a trusted device. As a result, when a passive FTP connection was made, the necessary port was restricted by the firewall. Once the network device was identified as a trusted device, everything started working perfectly.
Gaurav, thanks for the suggestions in the vsftpd.conf file. They worked!
Chris
|
|
|
02-15-2005, 06:19 PM
|
#6
|
LQ Newbie
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15
Rep:
|
Try it...
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
good luck!!!!
|
|
|
All times are GMT -5. The time now is 03:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|