HOw do i give a user cronjob edit/settings permission?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users HOw do i give a user cronjob edit/settings permission?
# 1  
Old 01-23-2008
HOw do i give a user cronjob edit/settings permission?

Hi,

In a Unix Server when i 'su' to my name and type in crontab it says " You are not authorised......".

Pls suggest what to do? How do i give myself permission so that I can schedule a cron.
# 2  
Old 01-23-2008
UNIX account with your name may not have permission to set crontab entries.

Following is transcript from manual pages of crontab. you could check /etc/cron.d/cron.allow or /etc/cron.d/cron.deny files

Users: Access to crontab is allowed:

o if the user's name appears in /etc/cron.d/cron.allow.

o if /etc/cron.d/cron.allow does not exist and the user's
name is not in /etc/cron.d/cron.deny.

Users: Access to crontab is denied:

o if /etc/cron.d/cron.allow exists and the user's name is
not in it.

o if /etc/cron.d/cron.allow does not exist and user's
name is in /etc/cron.d/cron.deny.

o if neither file exists, only a user with the
solaris.jobs.user authorization is allowed to submit a
job.

o if BSM audit is enabled, the user's shell is not
audited and the user is not the crontab owner. This can
occur if the user logs in by way of a program, such as
some versions of SSH, which does not set audit parame-
ters.

The rules for allow and deny apply to root only if the
allow/deny files exist.
# 3  
Old 01-24-2008
s-bit for /usr/bin/crontab

Once you have "s-bit" (4755) for crontab command, then users will be able to make their own crontab simply with "crontab -e"
This will create file name "username" in /var/spool/cron directory
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How do I give permission for the kill command?

<?php $comando = "kill -9 3104"; $output = shell_exec($comando); ?> I am running this web page, but it does not execute the command, in the log file it looks like this: sh: 1: kill: Operation not permitted How do I give permission to execute the command? (1 Reply)
Discussion started by: Rodrigo_Bueno
1 Replies

2. Solaris

How to give full permission to a directory?

Hi, I have enabled the Apache webserver on my machime. Apache root directory is /etc/apache2 and the user in which the web server is configured is webservd,I guess. I have another user called perf. Under perf user there is /export/home/perf/v9 directory. I want to give the OS user of... (3 Replies)
Discussion started by: bikas89
3 Replies

3. Shell Programming and Scripting

Cronjob not working from user's crontab

Hi All, I am trying to execute a python script from a user's crontab. /home/user1/UDE/scripts/UdeManager.py I am at /home/user1. If I run the command "/home/user1UDE/scripts/UdeManager.py" from the users home directory its working fine. But when I try to run from user's cron tab its... (3 Replies)
Discussion started by: Tuxidow
3 Replies

4. UNIX for Advanced & Expert Users

Access file permission settings from Windows

Looking to see if there is a tool/crawler that could export the file permissions to a windows for a unix system ? (3 Replies)
Discussion started by: matvrix
3 Replies

5. Shell Programming and Scripting

give permission to read a file

I want to give tester only the account tester to view the file /var/mail/root nobody else but him and of course the owner root w/o changing the permisions of /var/mail/root -rw-------. $ cat /var/mail/root cat: /var/mail/root: Permission denied (3 Replies)
Discussion started by: kenshinhimura
3 Replies

6. UNIX for Advanced & Expert Users

user settings

Hello I wonder... lets say I have to set up very very restricted rights to a user that only should be able to access logfile Y in catalogue X and nothing else. Current user is going to use Putty to access current unix machine. Is it possible to set up user settings so a user is just able to... (1 Reply)
Discussion started by: mimaca
1 Replies

7. Solaris

give user permission on specific directory in solaris

dear all does any one give any user write permission using access control list or another way to solve this problem (1 Reply)
Discussion started by: murad.jaber
1 Replies

8. Shell Programming and Scripting

Cronjob: permission denied

Hello everybody, I will be very thankfull for any help to solve this problem. My project installed in subfolder and url is mysite.mydomain.com. Can't setup crontab for this project, error: " /bin/sh: /usr/bin/GET: Permission denied ". But it is working fine for root directory installation. ... (16 Replies)
Discussion started by: Alano
16 Replies

9. UNIX for Dummies Questions & Answers

How to give permission for a specified user

Hi All, How can i give permission for a specific user ( eg. admin ) ? I tried with chmod admin+r prog.sh which doesnt work. Is there any way i can specify a user's name and give the permission? Thanks in advance. Saneesh Joseph. (1 Reply)
Discussion started by: saneeshjose
1 Replies

10. Shell Programming and Scripting

Cronjob not considering my .envrc settings

Hi, I am trying to execute a java program with a perl wrapper over that. when i execute the perl script it is running fine as my .envrc settings are already loaded when the shell is started. When i put this perl wrapper in cron, then it says the CLASSPATH env-variable is not defined. Does the... (1 Reply)
Discussion started by: sarmakdvsr
1 Replies
Login or Register to Ask a Question