Solved

How to FTP into a Folder that I do not "Own" (CHOWN-Apache)

Posted on 2014-04-04
2
471 Views
Last Modified: 2014-04-10
Hi All -
Several applications that I install on our dedicated Linux/Apache require that I change the ownership from me to "apache" ... after which, I cannot FTP into those folders unless I logon as Linix Root user. It is for an online store, so I ned to maintain external security.
Is there a better way for me, just 1 user, for  "FTP'g into an apache owned folder" without having to logon as Root?  (We are using CentOS)

Thanks in advance
0
Comment
Question by:bleggee
2 Comments
 
LVL 28

Accepted Solution

by:
Jan Springer earned 250 total points
ID: 39979008
Yes, make your account the owner, i.e.,:

   chown webmaster:apache /var/www/html

If apache also needs to write to the directory:

   chmod 770 /var/www/html
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 250 total points
ID: 39979254
You just had to change group to apache so apache reads the files
And it is much better that it cannot rewrte content
You have to add yourself to group apache if you want new files be with apaches' group
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Squid Connection Pools 3 68
Ubuntu not booting - How get past GRUB? 3 43
CENTOS DHCP Server / PXE/TFTP 14 75
error log using ftp 7 40
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question