Linux: disable wtmp/utmp, sshd ip logging and any mentions of ip that does remote access

Any ideas how to do all above? I've disabled LOG_OK_LOGINS and SYSLOG_SU_ENAB in login.defs, but still don't know how to do everything else.


According to man wtmp, you cannot disable utmp on Linux:

Unlike various other systems, where utmp logging can be disabled by removing the file, utmp must always exist on Linux. If you want to disable who(1) then do not make utmp world readable.

About the sshd ip logging, you can comment the line begin with auth, authpriv facility in /etc/syslog.conf:

#authpriv.*                      /var/log/secure

and restart the syslog daemon:

# /etc/init.d/syslog start
Starting system logger:                                    [  OK  ]
Starting kernel logger:                                    [  OK  ]

PS: Could you please tell us the reason you want to do that?