what i have done i am writing to u.
i logged as root
then su - sys
then go to /usr/spool/cron/crontabs
vi sys
& make the changes but when i save it says dont have permission.
First, you can enable sar by root. If you really want to do it by sys. Pls. see the config file of crontab:
/etc/cron.d/cron.allow and
/etc/cron.d/cron.deny
It's best not to directly edit the crontab files. Once you su - sys
then verify your EDITOR env variable by typing:
echo $EDITOR
It should come back with "vi". If not just type:
EDITOR=vi;export EDITOR
Then type:
crontab -e
This will bring up a vi window with the sys crontab in it. Edit the file as you normally would and when you do a
:wq
it'll save the file and tell the cron daemon to re-read it.
Make sure you have an editor set before you type crontab -e, if you don't have an editor set and you exit the program wrong you can erase the crontab (ask me how I know).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.