-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.

Algemeen (9)
GlassFish (49)
Java (58)
Managed Services (10)
Oracle (120)
Private Cloud Hosting (2)
SOA/BPEL/ESB (11)
Software development (92)
Strategie (7)
WSO2 (2)

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

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