Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8738497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:44:31+00:00 2026-06-13T10:44:31+00:00

I have some web service + some shell scripts which I want to execute

  • 0

I have some web service + some shell scripts which I want to execute with cron.
The problem is with the tmp directory.

  1. To make webservice work I had to run command sudo chown -R www-data:www-data app/tmp (www-data is group and user used by apache)
  2. The problem is that then when I execute CakeShell with some user I get lots of errors telling that some files in app/tmp dir are not writable – this is because tmp dir is owned by www-data…
  3. I can run those scripts with root user – then I don’t get any errors…
  4. When I run scripts with root user, from time to time those scripts modify some files in app/tmp and then I got many errors on webservice (website) that some files in app/tmp are not writable. It seems that runing scripts sometimes modifies tmp files with permissions of user executing those scripts.
  5. I want to execute those scripts from cron.

And my questions are:

  1. What is correct setup for app/tmp dir (permissions, user, group etc) and how I can set it up to get both webservice and executing scripts from shell working?
  2. Is it possible to set up permissions to app/tmp dir to allow writing and reading it for all users and groups? Is it good idea?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:44:32+00:00Added an answer on June 13, 2026 at 10:44 am

    If you do not use a shared webserver, you can use a permissive ownership:

    chmod -R 777 app/tmp

    If you own the server/VPS, it’s not a security hole, since the more sensible user (www-data) already have access.

    OR

    You can run the crontab “in name of” www-data user, using the command su

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some types which are generated by a web service reference. I want
I have some problem with calling web service from flex. I have service with
I have some problem when unmarshaling a .xml at a web service using JAXB.
I have a web service , i add some extra class which have message
I have created a web service which returns some data and am trying to
I have created a web service which is saving some data into to db.
I made a Web service in which I have a function to count some
i want use some data from a website with web service. i have a
I have some WSDL from which I need to generate a web service implementation.
I have an IntentService which makes some web service calls. Before making these calls

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.