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

Posted on 2007-08-07
Medium Priority
Last Modified: 2008-09-17
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?
Question by:hpotar
LVL 46

Expert Comment

by:Kent Olsen
ID: 19648837
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?


Author Comment

ID: 19649898
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..
LVL 48

Expert Comment

ID: 19649939
With sshd, you control the logging via the


options in /etc/ssh/sshd_config
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 19649994
got anything for rsh?
LVL 27

Accepted Solution

Nopius earned 500 total points
ID: 19651207
> have "replication" running between
2 machines that automatically copies over data from one machine to another.

Try to redirect all output from your replication commands output to /dev/null, if they run from cron, do it in crontab.

Just append to the end of command: "> /dev/null 2>&1"

If not it doesnt help, then some program uses syslog() library call and we can direct syslog output for special priority/facility to dev/null. If this priority/facility is too common, you should think of changing syslog daemon to something like syslog-ng (where you can filter messages, for example, by process name).


Author Comment

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

thank you all.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question