fedora core 2 FTP server setup

Okay, I have never setup a RedHat FTP server before.  I found this article and followed the directions.
http://www.chinalinuxpub.com/doc/www.siliconvalleyccie.com/linux-hn/ftp-server.htm
I changed the steps here:

[root@bigboy tmp]# chmod 750 /home/ftp-docs
[root@bigboy tmp]# chown root:ftp-users /home/ftp-docs
[root@bigboy tmp]# useradd -g ftp-users -d /home/ftp-docs user1

to this:

[root@bigboy tmp]# chmod 750 /var/www
[root@bigboy tmp]# chown root:ftp-users /var/www
[root@bigboy tmp]# useradd -g ftp-users -d /var/www user1

Because I wanted to be able to upload website info but I keep getting kicked back to /var/ftp with no rights.
I am confused and not sure where to look to fix this.  I only need one user with this access and I am going to turn off FTP all together when this server is built for added security.  I will just Putty back in and start the service if I need access.

help help!
LVL 1
HelixxAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kiitiiCommented:
First question:
How did you access the ftp site? what software did you use? did you login with user anonymous?

The easiest is try IE, key in this in the Address Bar:-
ftp://user1@ftp.server.com

Then key in your password.
You can start drag and drop your files into the server.

FROM this 2 commands,
[root@bigboy tmp]# chmod 750 /var/www
[root@bigboy tmp]# chown root:ftp-users /var/www

TRY
# chmod -R  750  /var/www
# chown -R  root:ftp-users  /var/www

Good luck

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HelixxAuthor Commented:
I tried the two commands you mentioned.  Not sure what the -R does but when I try to connect I get:

Windows cannot access this folder.  make sure you typed the file name correctly and that you have permission to access the folder.
Details:
220 (vsFTPd 1.2.1)
530 Permission denied.

I have been using IE as the client just for testing.  I will most likely us CuteFTP or something for the final move as I know of ASCII and binary file problems.
kiitiiCommented:
"-R" basically means recursively, meaning it will perform the same command to all the sub sub sub folders.

Opps, sorry i gave you the wrong command
It should be
# find  /var/www  -type  d  -exec chmod 755 \;
# find  /var/www  -type  f  -exec  chmod 644 \;

 Please ignore the
# chmod -R 750  /var/www

If your objective is to upload webpages to linux-box, why don't you try  WINSCP (www.winscp.net).
That is the best tools for linux administrator to perform file transfering from Windows to Linux/Unix via SSH protocol. Since most of the modern Linux/Unix support ssh, and default comes with ssh. It should just work out of the box. No modification needed on linux box.

Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

kiitiiCommented:
If you insist to use FTP.

Try this:-

# chmod -R  775  /var/www

The example from the net "chinalinuxpub" not really suitable for your scenario.
750 meaning
7 = root =  owner full access
5 = ftp-users = group read-only access (tat's why you can't write)
0 = others = no access at all (useless, because usually when you upload webpages, you want others from outside/internet, to browse into this folder, so why you wanna block people from browsing?)


I propose 775
7 = root = owner full access
7 = ftp-users = group will have read/write access
5 = others = read only access (perfect for web server)


Hope this helps!
HelixxAuthor Commented:
I am still getting the same error.

ftp://user1@10.10.10.10 (not the real IP)

Windows cannot access this folder.  make sure you typed the file name correctly and that you have permission to access the folder.
Details:
220 (vsFTPd 1.2.1)
530 Permission denied.

If I just go to to ftp://10.10.10.10 it open the /var/ftp folder with no write access.
HelixxAuthor Commented:
Oh, and the commands
# find  /var/www  -type  d  -exec chmod 755 \;
# find  /var/www  -type  f  -exec  chmod 644 \;

returned too few arguments errors.
HelixxAuthor Commented:
After all of that, looks like it was just a bad install.  Nice to know that M$ does not corner the market on this kind of thing.  Thanks for all of the help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.