Solved

Folder change owner un Linux Server CHOWN

Posted on 2009-03-31
9
1,006 Views
Last Modified: 2013-12-16
I am renting a server at rackspace, and I have a web site already up on it . The problem I am having is that to add content like videos and audio I am  using all ftp filezilla however wehenever a web user creates a folder or file via web  it gets s owned by apache user and apache group, not my ftp user name and password ???

Zones changed by Netminder 31 Mar 2009

Open in new window

0
Comment
Question by:RickyGtz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 400 total points
ID: 24032767
you may set a crontab job that will change ownership to what you want. run this job as root every say 5 min
0
 

Author Comment

by:RickyGtz
ID: 24033281
Hi , How would I do that?
0
 
LVL 13

Assisted Solution

by:WizRd-Linux
WizRd-Linux earned 100 total points
ID: 24034278
crontab -e
Add: */5 * * * * chown -R root /path/to/directory > /dev/null 2>&1
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 400 total points
ID: 24035222
you may do the following as root:

- EDITOR=vi ; export EDITOR
- crontab -e (this will bring you your crontab jobs schedules in temp file to edit using vi)
- add line similar to

*/5 * * * * /usr/bin/chown -R ftpuser:ftpusergroup /path/to/directory > /dev/null 2>&1

-save and exit
0
 

Author Comment

by:RickyGtz
ID: 24035956
But I dont think I have the root access, I have my username for the ssh and password and for the ftp
0
 

Author Comment

by:RickyGtz
ID: 24036292
could someone try to access my ssh client and see whats wrong?
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24036758
can you not try by adding ftp user in apache group ??

0
 

Author Comment

by:RickyGtz
ID: 24039318
Where do I add this information. Not really a linux guy.
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24039349
if you have apache group

then you can try this

usermod -a -G apache ftp


so here user ftp will be a part of apache groups

but make sure

you have apache listed in /etc/groups file
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

728 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