LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-25-2010, 09:04 AM   #1
kwalder2010
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Rep: Reputation: 0
Cannot post files to /var/www/html using FTP


I created a local user acount and tested FTP. This allows me to post files to this directory using filezilla. I then created a webftpaccount and set the home directory to /var/www/html.

Here are the permission to this directory using ls -l
drwxrwsr-x 6 webftpaccount webftpaccount 4096 Nov 23 10:32 html

here are the permission on the sub directories

drwxrwsr-x 2 webftpaccount ftp 4096 Nov 14 07:37 myfinanceguard
drwxrwsr-x 2 webftpaccount root 4096 Nov 14 07:37 mylawguard
drwxrwsr-x 2 webftpaccount root 4096 Nov 14 07:36 xpiinc

I can log into the webftpaccount using filezilla client and it lists all the directories. It will not allow me to write a file into the html directory or any of the sub directories.

Can someone help me set appropriate permissions on these directories so that I can get this working? I need to get FTP working so I set up dreamwaever FTP to publich and maintain sites.
 
Old 11-25-2010, 09:20 AM   #2
barriehie
Member
 
Registered: Nov 2010
Distribution: Debian Lenny
Posts: 136
Blog Entries: 1

Rep: Reputation: 23
Could try adding write permissions for others and what are the apache permissions set to?

Last edited by barriehie; 11-25-2010 at 09:23 AM.
 
Old 11-25-2010, 09:32 AM   #3
kwalder2010
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
How would I add write permission to others and how do I determine apache permissions? I am very new to this.
 
Old 11-25-2010, 09:37 AM   #4
kwalder2010
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I did a chmod 777 -R HTML. Here are the permissions on the file now.

drwxrwxrwx 2 webftpaccount ftp 4096 Nov 14 07:37 myfinanceguard
drwxrwxrwx 2 webftpaccount root 4096 Nov 14 07:37 mylawguard
drwxrwxrwx 2 webftpaccount root 4096 Nov 14 07:36 xpiinc

From the filezilla client I get a 553 cond not create file critical error
 
Old 11-25-2010, 09:40 AM   #5
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,093

Rep: Reputation: 197Reputation: 197
The chmod command allows you to modify file and directory permissions.

Code:
$ man chmod
and Google are the best sources for more information and examples. I don't what 'apache permissions' means.

Looks to me from what you've posted that you should be able to write to the html directory as the webftpaccount user. Do you receive any error messages?

Are you aware that FTP is an insecure protocol? Your username and password are sent in the clear. You should not use FTP unless you really have no other choice. If you have SSH access to the machine you can use SFTP for file transfer and should do so instead of using FTP.
 
Old 11-25-2010, 09:46 AM   #6
kwalder2010
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for your post. At present I am using the vsftp utilizty on centos. I believe this is the secure ftp. Am I incorrect in this assumption?

Last edited by kwalder2010; 11-25-2010 at 09:54 AM.
 
Old 11-25-2010, 10:47 AM   #7
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
vsFTP includes support for FTPS (also known as FTP Secure and FTP-SSL).

Quote:
is an extension to the commonly used File Transfer Protocol (FTP) that adds support for the Transport Layer Security (TLS) and the Secure Sockets Layer (SSL) cryptographic protocols.

FTPS should not be confused with the SSH File Transfer Protocol (SFTP), an incompatible secure file transfer subsystem for the Secure Shell (SSH) protocol. It is also different from Secure FTP, the practice of tunneling FTP through an SSH connection.
http://en.wikipedia.org/wiki/FTPS

Why have 2 of the sub-directories in roots group ? That is not really advisable.

I always set up separate users for web sites, and then make their html document root for that site inside their home directories.
 
Old 11-25-2010, 12:18 PM   #8
kwalder2010
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the tip. I will set up the sites in thier own user accounts. This seems pretty straight forward as I already can get the FTP to wprk wiith individual user sites.
 
  


Reply


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
ftp access to /var/www/html bmccarty12 Linux - General 2 10-16-2009 12:21 PM
FTP access to /var/www/html/web_folder jonaskellens Linux - Server 2 07-11-2009 08:23 AM
FTP client can't access files in /var/www/html (Apache ) dshap Linux - Newbie 8 06-03-2009 12:12 PM
Symbolic Link For FTP Access To /var/www/html ERRRRRRRRRRRR! JustinK101 Linux - Software 3 01-31-2007 11:32 AM
how to setup ftp user's diretory as /var/www/html lzyking Linux - Software 4 02-25-2003 12:58 PM


All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration