Solved

How to grant privileges for new user( to run cron jobs)

Posted on 2008-10-29
4
1,423 Views
Last Modified: 2013-12-27
Hi experts,

My OS is sun Solaris

I have create a new user call jack, under jack user i have created some cron jobs.
Now i what to grant privileges to jack to  run the cron scripts.

How to grant privileges to RUN cron?

Pls help me.

thanks.  
0
Comment
Question by:sivakumar_experts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 14

Expert Comment

by:top_rung
ID: 22829097
Hi,

I don't use Solaris, but I did find some information that might help you...

5. Permissions: If user you are using is not part of cron.allow file. you will not be allowed to run job using your user and in the same way if your user is part of cron.deny file you will also be not allowed to run jobs using cron. Ask root to edit these files according to requirements

These files can be located at /etc or /usr/lib/cron/

http://www.techiegyan.com/?p=127

I hope this helps.



0
 
LVL 5

Expert Comment

by:awa2008
ID: 22829098
Hello ,

if you have created cron under user jack there nothing to do more

you can check as root  with typing :

crontab -l jack

if you see the jack's crontab that ok


you can see information about restriction :

http://www.adminschoice.com/docs/crontab.htm#Restrictions


I hope that help you
0
 
LVL 48

Expert Comment

by:Tintin
ID: 22829136
By default under Solaris, there are no restrictions on a user creating a cronjob.

I don't understand your question.  You say the user jack has created some cronjobs, so what's the problem?
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 150 total points
ID: 22831208
As Tintin said, by default users are able to run crontab jobs. If you have users that are not able to run crontab scripts, then

- check user's email since job output or error messages are sent to user via nail, unless user redirects to a file
- check cron logs

/var/cron/log

- check dir

/var/spool/cron/crontabs

for user's crontab jobs file
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question