Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Why was /etc/passwd updated automatically?

    General pfSense Questions
    5
    12
    4.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      "I noticed that the checksum of /etc/passwd had changed"

      How did you happen to notice that exactly?

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • B
        biggsy
        last edited by

        Are you running a "pre-installed" version of pfSense?

        If so, best to get rid of it.  Read this.

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          That looks completely normal to me. /etc/passwd is one of the many files manipulated by the system based on the contents of config.xml.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            I see the same entries in mine.

            I am more curious how he noticed its checksum changed ;)

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User
              last edited by

              @johnpoz:

              "I noticed that the checksum of /etc/passwd had changed"

              How did you happen to notice that exactly?

              A monitoring platform here threw this warning. It also has a history of the checksums for the file, and I confirmed that the checksum stayed the same for a long time until after this reboot, when it changed.

              @biggsy:

              Are you running a "pre-installed" version of pfSense?

              If so, best to get rid of it.  Read this.

              Uh that's scary. But luckily no, I installed this pfSense myself from the website (version 2.4.2-RELEASE, if it matters).

              @johnpoz:

              I see the same entries in mine.

              Perhaps this wasn't addressed to me, but "same entries" compared to what? 🤔

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                here…

                2018-01-11 14:45:36 [unknown:userdel] admin(0) account removed
                2018-01-11 14:45:36 [unknown:groupmod] all(1998)
                2018-01-11 14:45:36 [unknown:usermod] root(0):wheel(0):Charlie &:/root:/bin/sh
                2018-01-11 14:45:36 [unknown:useradd] admin(0):wheel(0):System Administrator:/root:/etc/rc.initial
                2018-01-11 14:45:36 [unknown:useradd] admin(0) home /root made
                2018-01-11 14:45:36 [unknown:groupmod] all(1998)
                2018-01-11 14:45:36 [unknown:groupmod] admins(1999)

                2017-12-13 07:55:53 [unknown:userdel] admin(0) account removed
                2017-12-13 07:55:53 [unknown:groupmod] all(1998)
                2017-12-13 07:55:53 [unknown:usermod] root(0):wheel(0):Charlie &:/root:/bin/sh
                2017-12-13 07:55:53 [unknown:useradd] admin(0):wheel(0):System Administrator:/root:/etc/rc.initial
                2017-12-13 07:55:53 [unknown:useradd] admin(0) home /root made
                2017-12-13 07:55:53 [unknown:groupmod] all(1998)
                2017-12-13 07:55:53 [unknown:groupmod] admins(1999)
                2017-12-15 03:56:15 [unknown:userdel] admin(0) account removed
                2017-12-15 03:56:15 [unknown:groupmod] all(1998)
                2017-12-15 03:56:15 [unknown:usermod] root(0):wheel(0):Charlie &:/root:/bin/sh
                2017-12-15 03:56:15 [unknown:useradd] admin(0):wheel(0):System Administrator:/root:/etc/rc.initial
                2017-12-15 03:56:15 [unknown:useradd] admin(0) home /root made
                2017-12-15 03:56:15 [unknown:groupmod] all(1998)
                2017-12-15 03:56:15 [unknown:groupmod] admins(1999)

                All would of been reboot times..

                What monitoring platform are you using on pfsense that tells you checksums have changed?  I am not aware of any such package.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by

                  Ah got it lol, I was just being slow then. This is what happens when you skip your morning coffee I guess.

                  On pfSense specifically, I have been testing Zabbix, because you can install the client agent straight from the default repo: pfSense-pkg-zabbix-agent34-1.0.1

                  One of the default templates is for FreeBSD machines, and one of the checks it does out of the box is monitoring the checksum of /etc/passwd.

                  1 Reply Last reply Reply Quote 0
                  • M
                    maverick_slo
                    last edited by

                    @johnpoz:

                    here…

                    2018-01-11 14:45:36 [unknown:userdel] admin(0) account removed
                    2018-01-11 14:45:36 [unknown:groupmod] all(1998)
                    2018-01-11 14:45:36 [unknown:usermod] root(0):wheel(0):Charlie &:/root:/bin/sh
                    2018-01-11 14:45:36 [unknown:useradd] admin(0):wheel(0):System Administrator:/root:/etc/rc.initial
                    2018-01-11 14:45:36 [unknown:useradd] admin(0) home /root made
                    2018-01-11 14:45:36 [unknown:groupmod] all(1998)
                    2018-01-11 14:45:36 [unknown:groupmod] admins(1999)

                    2017-12-13 07:55:53 [unknown:userdel] admin(0) account removed
                    2017-12-13 07:55:53 [unknown:groupmod] all(1998)
                    2017-12-13 07:55:53 [unknown:usermod] root(0):wheel(0):Charlie &:/root:/bin/sh
                    2017-12-13 07:55:53 [unknown:useradd] admin(0):wheel(0):System Administrator:/root:/etc/rc.initial
                    2017-12-13 07:55:53 [unknown:useradd] admin(0) home /root made
                    2017-12-13 07:55:53 [unknown:groupmod] all(1998)
                    2017-12-13 07:55:53 [unknown:groupmod] admins(1999)
                    2017-12-15 03:56:15 [unknown:userdel] admin(0) account removed
                    2017-12-15 03:56:15 [unknown:groupmod] all(1998)
                    2017-12-15 03:56:15 [unknown:usermod] root(0):wheel(0):Charlie &:/root:/bin/sh
                    2017-12-15 03:56:15 [unknown:useradd] admin(0):wheel(0):System Administrator:/root:/etc/rc.initial
                    2017-12-15 03:56:15 [unknown:useradd] admin(0) home /root made
                    2017-12-15 03:56:15 [unknown:groupmod] all(1998)
                    2017-12-15 03:56:15 [unknown:groupmod] admins(1999)

                    All would of been reboot times..

                    What monitoring platform are you using on pfsense that tells you checksums have changed?  I am not aware of any such package.

                    Ummmm well I`m using zabbix. And it whines about any MD5 change of mentioned file. :)

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by

                      Can't you just turn that warning/whine off.. Since you know its going to change anytime you reboot?

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User
                        last edited by

                        @johnpoz:

                        Can't you just turn that warning/whine off.. Since you know its going to change anytime you reboot?

                        Now that I know that pfSense changes this file every reboot, sure (although it would still be useful to be notified when this file changes for reasons other than a reboot).

                        Still, it would be nice to know why pfSense behaves like this, and why the admin account is removed every reboot and added to the passwd file again. Surely there must be a reason for this?

                        1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator
                          last edited by

                          While I am not an expert on the whole boot process of pfsense.. From a general point of view… The configuration of pfsense is stored in XML... So on boot I would assume pfsense makes sure that "all" settings that are in the config XML are placed into the appropriate files.

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.