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?
 
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
0
 
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.
0
 
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.

0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
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!
0
 
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.
0
 
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.
0
 
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.