Link to home
Start Free TrialLog in
Avatar of hpotar
hpotar

asked on

how do we turn off rsh logging to /var/log/messages?

How do you turn off logging for rsh/rlogin/rcp? I'm running CentOS 4.4 and have "replication" running between
2 machines that automatically copies over data from one machine to another. In the process there are several
rsh command executing that are logged to /var/log/messages, making it 100's of MBs in size.

I tried blanking out log_on_success in /etc/xinetd.d/rsh and restarting xinetd. Nothing in /etc/syslog.conf, nothing that I can change in /etc/xinetd.conf.

Not sure if this is hard-coded in the rshserver... any ideas?
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Hi hptoar,

rsh (and the other rxxx) tools are quickly dying in favor of more secure mechanisms.

Will ssh and/or scp meet your needs?


Kent
Avatar of hpotar
hpotar

ASKER

Thanks Kent. Unfortunately ssh won't meet the requirements.. Any IP changes will cause key interference.

Either way, i believe they write to /var/log/messages anyway don't they?
the issue would still remain in that case..
With sshd, you control the logging via the

SyslogFacility
LogLevel

options in /etc/ssh/sshd_config
Avatar of hpotar

ASKER

got anything for rsh?
ASKER CERTIFIED SOLUTION
Avatar of Arty K
Arty K
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hpotar

ASKER

thanks nopius,
I've already redirected all output of the script to other log files. I'll change the syslog daemon.

thank you all.