0

Can passwords or other sensitive information be removed from system logs?

After mounting shares with

mount -t cifs -o username=[USER],password=[PASSWORD] //[HOST]/[SHARE] /[MOUNT_POINT]

checking logs with journalctl reveals that the command is recorded in its entirety, including the password.

adatum
  • 655
  • 9
  • 23
  • I'm sure this is more a [Unix](https://unix.stackexchange.com/) question. I don't believe that `journalctl` allows for that - you may have to just use grep – Horkrine Aug 16 '19 at 09:10
  • @Horkrine Ah yes it would have been better to post in https://unix.stackexchange.com Is it possible (maybe for mods) to move this question there? – adatum Aug 16 '19 at 17:06

0 Answers0