aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-04-26 18:05:46 +0100
committerBryn M. Reeves <bmr@redhat.com>2013-04-26 18:05:46 +0100
commit30b9344f5193c9a2159a1f44db85c677ecbcb841 (patch)
treee1daa629d1cad6befbf3c5040f7825b29a64492c
parentffd1284609373a2312387cffe7ca8bd11b85baf0 (diff)
downloadsos-30b9344f5193c9a2159a1f44db85c677ecbcb841.tar.gz
Remove user crontabs from crontab plug-in
It's unwise to collect user crontabs (especially "for all accounts with a directory in /home"..) since they could contain confidential information. The icky shell call-out also has not worked in some time - remove it all. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/crontab.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/sos/plugins/crontab.py b/sos/plugins/crontab.py
index cde73f12..7ec2270e 100644
--- a/sos/plugins/crontab.py
+++ b/sos/plugins/crontab.py
@@ -23,6 +23,3 @@ class Crontab(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
def setup(self):
self.add_copy_spec("/etc/cron*")
self.add_cmd_output("crontab -l -u root", suggest_filename = "root_crontab")
- self.add_cmd_output("""for i in `ls /home/`;\
- do echo "User :" $i;crontab -l -u $i;\
- echo "---------------";done""", suggest_filename = "users_crontabs")