Solved

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

Posted on 2008-10-29
4
1,380 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now