Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

enable sar

Status
Not open for further replies.

kvashisht

IS-IT--Management
Sep 18, 2003
43
0
0
IN
I want to enable sar logging. how can i do it.
whats the password of user sys.

Pls tell me the password of other system users.

Regds,
Kaushal Vashisht
 
The user id [tt]sys[/tt] has no password. You'll need to log on as [tt]root[/tt] and [tt]su[/tt] to it to enable [tt]sar[/tt].

Hope this helps.

 
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.


Regds,
Kaushal Vashisht
 
Just a thought.

Try ommiting the minus from the su command.

 
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

tikual
 
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).

HTH
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top