Solved

Folder change owner un Linux Server CHOWN

Posted on 2009-03-31
9
1,004 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

726 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