?
Solved

Folder change owner un Linux Server CHOWN

Posted on 2009-03-31
9
Medium Priority
?
1,008 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 1600 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 400 total points
ID: 24034278
crontab -e
Add: */5 * * * * chown -R root /path/to/directory > /dev/null 2>&1
0
Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 1600 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Cloud file services can fill many different roles for your business. Often, the use of cloud file services begins with employees using consumer products, like Dropbox, to share files with customers and each other. While sync-and-share can be an effe…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month12 days, 3 hours left to enroll

752 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