• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1016
  • Last Modified:

Folder change owner un Linux Server CHOWN

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
RickyGtz
Asked:
RickyGtz
  • 4
  • 2
  • 2
  • +1
3 Solutions
 
omarfaridCommented:
you may set a crontab job that will change ownership to what you want. run this job as root every say 5 min
0
 
RickyGtzAuthor Commented:
Hi , How would I do that?
0
 
WizRd-LinuxCommented:
crontab -e
Add: */5 * * * * chown -R root /path/to/directory > /dev/null 2>&1
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.

 
omarfaridCommented:
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
 
RickyGtzAuthor Commented:
But I dont think I have the root access, I have my username for the ssh and password and for the ftp
0
 
RickyGtzAuthor Commented:
could someone try to access my ssh client and see whats wrong?
0
 
fosiul01Commented:
can you not try by adding ftp user in apache group ??

0
 
RickyGtzAuthor Commented:
Where do I add this information. Not really a linux guy.
0
 
fosiul01Commented:
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
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.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now