FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


FTP server





bulek
Hello!

I own a linux server where is installed Fedora Core 3. I recently installed ftp server vsftpd. It's now configured that every user in /home has rights to access to his own account (directory) with a full control. Everything works fine, except one thing. I would like to create a new user account with full access to public directory. That means if someone (anonymous) would enter to browser ftp://myip he would be redirected to public dir XY and able to download/list files (without upload permission). There would be also user ABC which would have all permissions only to dir XY (his home directory), so he could upload and delete files (if logged in of course). Is there any way to do that?

And another question related to domain name. It's actually very simply. I would like to have domain name (which I already registered on eurodns.com) for my ip. So if someone would enter ftp://mydomain it would be the same if entered only my IP address. How can I do that?

Thank you very much for further help.

Regards,
krneki
Nyizsa
I think the first part is as simple as creating an anonymous user and revoking his write right on his own home directory. This directory will be your public directory then. You may also grant other (logged-in) users write permissions on the directory, so that they will be able to upload stuff which then will be available to the public.
One way to do this:
After creating the user anonymous, chown his home directory to root and chgrp it to users. Then remove anonymous from the group users and set 775 permissions on /home/anonymous.
+++ UNTESTED!!! +++
It should work anyway.

About your second question: it will be so. I don't think you need to do anything else.
bulek
Here is the situation:
I chmod-ed /var/ftp/pub to 755 permissions. Anonymous users have now permission only to read and copy files from public dir. The user which I created with home directory on /var/ftp has exact permissions - only permission to view and copy files, but I get 500 error if I try to upload something.
However, that's not what I need. I still want to allow anonymous users to view files (without upload/delete permission) and created user to upload/delete/create/view permissions on public directory.
Maybe there is a trick with chroot and chmod? Could you give me the exact syntaxes for commands because I'm not expert on linux area? Thanks!
abhinav_shah
try googling...

also you can make a soft link to the public directory...

Abhinav Shah
squirrelmaster
do you have a static IP, or a dynamic IP?

a static IP would work fine with euroDNS registration,
if you have a dynamic IP then you will need a service that changes the DNS entry whenever your IP changes, a good one of those is www.no-ip.com.
elyah_ariel
squirrelmaster wrote:
do you have a static IP, or a dynamic IP?

a static IP would work fine with euroDNS registration,
if you have a dynamic IP then you will need a service that changes the DNS entry whenever your IP changes, a good one of those is www.no-ip.com.


Indeed, you must know if your IP is static or dynamic. One way to avoid a such problem is to contact directly your access provider, and ask to him the exact configuration to enter about the IP configuration.
fever
www.no-ip.com
www.dyndns.com

there are many others that would redirect to your site.

FTP: check connection settings - passive!
Related topics
Setting up Ftp Server
FTP
FTP server
SMF install: Unable to connect to FTP server
searching for FREE windows FTP server service
Problem accessing non-frihost ftp server
Free FTP Server
FTP Server Help!?!
FTP server
Cannot connect to my FTP Server.
Je eigen FTP server
How to set up a home FTP server
Trivial ftp server in Vista
FTP server time
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.