Solved

Folder change owner un Linux Server CHOWN

Posted on 2009-03-31
9
997 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 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
 
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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Automating a script for user accounts LINUX 14 68
parse convert xml feed to text (python) 2 69
wipe a usb using python 5 29
Can't ping New Linux Servers 40 20
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
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…
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now