Operating System - HP-UX
1837984 Members
2817 Online
110124 Solutions
New Discussion

how do i give a local user crontab availability

 
SOLVED
Go to solution
Scott_20
Occasional Advisor

how do i give a local user crontab availability

after i put the user in cron.allow, ie. user123, do a kill -HUP , how do i verify i have cron access? when i do crontab -e, i get a default file /var/tmp/filename. Is this where i put the time, day of month, etc.?
thanks
I'm ok
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: how do i give a local user crontab availability

Hi Scott,

You don't need to restart cron daemon. If you do a 'crontab -e' as user123, if you don't get 'you are not allowed..' kind of message, then user123 is allowed to use cron.

crontab -e will open your crontab file. You just add your cron entries in the format as specified in 'man crontab' and save. Alternatively, prepare a file with cron entries and run 'crontab ' to activate it in cron.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Victor Fridyev
Honored Contributor

Re: how do i give a local user crontab availability

Hi,
You can do all crontab operations for all users as follows:
crontab [file]

crontab -e [username]

crontab -l [username]

crontab -r [username]

If you have an example of crontab for user123, run:
su - user123 -c "crontab cron_example"

HTH
Entities are not to be multiplied beyond necessity - RTFM