?
Solved

Folder change owner un Linux Server CHOWN

Posted on 2009-03-31
9
Medium Priority
?
1,010 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
  • 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

839 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