Subject: Re: do cron task as root
To: Water NB <netbsd78@126.com>
From: Petar Bogdanovic <petar.bogdanovic@ipw.unibe.ch>
List: netbsd-users
Date: 06/20/2006 11:38:42
Water NB wrote:
> As a non-root account, I know how to do cron task.
> write a crontab file and call crontab program.
If you want to edit your (non-root) crontab, try:
crontab -e
> But for root:
> Where is this crontab file?
> i.e. Where /etc/{daily,weekly,...} are called?
If you have sudo, try:
sudo crontab -e
..and you'll get $EDITOR with the crontab of root.
If you don't have sudo, use su(1) and afterwards `crontab -e'.
Kind regards,
Petar