-bash: /usr/bin/crontab: Permission denied

By default de Oracle user has no priviledges to add cron jobs under SLES 10.
when trying to do so you will recieve an error which looks something close to this :

oracle@xxx:~> crontab -l
-bash: /usr/bin/crontab: Permission denied

The solution to this is to add the “trusted” group to the user oracle.
To so this , you can login as root and preform this command :

[]oracle@xxx:~> su
Password:
xxx:/ # usermod -G trusted oracle
xxx:/ # exit
[]oracle@xxx:~> crontab -l
-bash: /usr/bin/crontab: Permission denied

After have done so, you need to login with oracle again to let the changes work.

[]oracle@xxx:~> su - oracle
Password:
[]oracle@xxx:~> crontab -l
no crontab for oracle

You can now either use
[]oracle@xxx:~>crontab -e
(to add,remove or edit the oracle cron jobs)

Or use
[]oracle@xxx:~>crontab -l
(to simply list scheduled cron jobs foir the user oracle)

Comments are closed.

  • 071 - 82 000 82
  • Rijndijk 137 | 2394 AG Hazerswoude-Rijndijk
DEMO
Oracle Specialized
Java
GlassFish
WSO2
i-bridge
Rabobank
Greencat
Reuma Revalidatie Rotterdam
Robeco
VU Medisch Centrum
CHS
LUMC
TomTom
TKP
NCCW
Erasmus MC
UMCG
VIR
ANWB
BVA Auctions
D-Reizen
STEDIN