SunQuest
           Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 16th, 2005, 12:37 PM
octopi octopi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 18 octopi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 12 sec
Reputation Power: 0
cron to change owner of file

recently I emailed my webhost, contacting them about CHMOD'ing a .php file to 777. the method i was using the CHMOD was the php function chmod(); which did not work
the server provider then contacted me saying that i had to run a cron that changes the owner of the .php files every so often. i have a few questions

1. what is a cron (because i feel as a web designer, even though this is a one-project problem, it is better to gain more and more information)
2. what would that be, keep in mind that i do not have shell access and that i have to implement them through cPanel's cron interface
3. what would i have to change the owner to? the login to my server is "octopi" however, would there be a unix preset name?

Reply With Quote
  #2  
Old January 17th, 2005, 08:32 AM
sbkwi sbkwi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Regensburg, Germany
Posts: 133 sbkwi User rank is Sergeant (500 - 2000 Reputation Level)sbkwi User rank is Sergeant (500 - 2000 Reputation Level)sbkwi User rank is Sergeant (500 - 2000 Reputation Level)sbkwi User rank is Sergeant (500 - 2000 Reputation Level)sbkwi User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 17 h 29 m 19 sec
Reputation Power: 11
  1. From http://www.unixgeeks.org/security/newbie/unix/cron-1.html:
    Quote:
    Cron is the name of program that enables unix users to execute commands or scripts (groups of commands) automatically at a specified time/date.
  2. You need to create a shell script that does the CHOWN which is run by CRON.
  3. If you want to do the CHMOD with a php page of your web site, you need to change the owner of the file to the user the apache web server is running. You can get this user by running a php test script.
If the problem is that you only need to CHMOD some files you have uploaded to your site, you can do this using ftp. Most ftp clients let you execute CHMOD on remote files.

Reply With Quote
  #3  
Old January 20th, 2005, 04:34 PM
octopi octopi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 18 octopi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 12 sec
Reputation Power: 0
ok, so what would the cron be? i'm a little confused. on my interface i'm running, there are drop-down boxes that handle all the times and such, but there is a line for a unix command to run. if you wrote a script cron.sh, what would you do to execute it?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > cron to change owner of file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway