Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have set a cron job to execute a bash script. If I change the permissions of the script to (Others: None) will it still be executed?

Thanks a lot

share|improve this question

1 Answer 1

Who wants to run the script? If 'root', yes there is no problem, otherwise the runner should have group or owner execution permission.
If you just put your script into cron.* folders, it is run by root. But you might use crontab -e.

share|improve this answer
    
Its a backup job thats runs every day when I am logged in. –  ECII Dec 25 '11 at 17:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.