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

  • SEARCH
  • Home
  • 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 7983797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:04:21+00:00 2026-06-04T11:04:21+00:00

I have been tasked to run a script from cron, so I have written

  • 0

I have been tasked to run a script from cron, so I have written following cronjob for the script and it output the following mentioned error message.

cronjob

#BE housekeeper.sh
* * * * * /product/tools/housekeeper.sh -t BE > /tmp/fileset.out 2>&1

fileset.out contain the error message. this is the error message.

/bin/sh: /product/tools/housekeeper.sh: Permission denied

why does it says permission denied. user1 can execute the housekeeper script as follows

$sh housekeeper.sh -t BE

then I checked whether user1 is allowed to run the cronjob. this check also pass. user1 is allowed to run crontab. so what could be the possible error in this case.

root      4181     1  0  2011 ?        00:00:00 crond
user1    7648  7564  0 06:18 pts/0    00:00:00 grep cron

I checked execute rights of the application

$ls -ltr

-rw-r----- 1 user1 aapp 11732 May 17 08:55 housekeeper.sh

does it says this application is executable

thanks in advance for anyhelp

  • 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-04T11:04:22+00:00Added an answer on June 4, 2026 at 11:04 am

    You need to change housekeeper.sh to have 755 permission (executable)

    chmod 755 housekeeper.sh
    

    Running sh housekeeper.sh and /product/tools/housekeeper.sh has a slightly difference in the way that doing sh calls an executable called sh found in the $PATH and feed housekeeper.sh into it, so you only need read permission on housekeeper.sh, but directly running it by doing /product/tools/housekeeper.sh would require you to have execute permission (thus the 755)

    EDIT

    I see that you have -rw-r----- permission, that is quite simply 610, let me explain a bit

    a file has 3 sets of permissions, represented in 3 groups of 3 bits. The first bit means read permission, as in your output, you see r, second bit is write permission w and third bit (which is not set, is x, executable bit). You have 3 sets of that, the first for Owner, Group and then Other, thus you have 9 bits

     111 111 111
     VVV VVV VVV
      |   |   |
    Owner |   |
        Group |
            Other
    

    so rw-r----- indicates that the owner has read and write bit, group has read bit, and other has no permission to do anything to this file.

    Setting 755 will yield rwxr-xr-x, I’ll leave it to you to think why 😀

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

Sidebar

Related Questions

I have recently been tasked with upgrading an application from .net 1.1 to 3.5
I have been tasked to write a script that will enable tcp and named
I have been tasked with obtaining a response from a SOAP request, using classic
I have been tasked with porting a large Java codebase to the Android platform.
I have been tasked with refactoring some components that used xmlbeans to now make
I have been tasked to develop an interactive website using java & mysql: using
I have been tasked to create a form designer application in Windows Forms. The
I have been tasked with securing the connection string in an classic ASP application
I have been tasked with automating our build process with msbuild. We have about
I have been tasked with designing my web services client code to use the

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.