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

    Strange OS Account Changes log records

    Scheduled Pinned Locked Moved General pfSense Questions
    15 Posts 4 Posters 1.7k Views
    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.
    • W
      Wolfgangthegreat
      last edited by Wolfgangthegreat

      Hi,

      My pfSense was installed about a week ago, I think 17 of October 2023.
      It is installed on a cloud VM, from the ISO install file.

      Looking now at Status > System Logs > Authentication > OS Account Changes, I see there logs from the 28 of June 2023... very strange.

      Any idea what this can be?

      (Added some 17th of October records for reference)

      "
      2023-10-17 10:50:20 [unknown:useradd] admin(0) home /root made
      2023-10-17 10:50:20 [unknown:groupmod] all(1998)
      2023-10-17 10:50:20 [unknown:groupadd] all(1998)
      2023-10-17 10:50:20 [unknown:groupadd] admins(1999)
      2023-06-28 04:40:24 [root:useradd] openvpn(301):openvpn(301):OpenVPN pseudo-user:/nonexistent:/usr/sbin/nologin
      2023-06-28 04:40:24 [root:useradd] dhcpd(136):dhcpd(136):ISC DHCP daemon:/nonexistent:/usr/sbin/nologin
      2023-06-28 04:40:24 [root:groupadd] openvpn(301)
      2023-06-28 04:40:24 [root:groupadd] dhcpd(136)
      2023-06-28 04:40:22 [root:useradd] messagebus(556):messagebus(556):D-BUS Daemon User:/nonexistent:/usr/sbin/nologin
      2023-06-28 04:40:22 [root:groupadd] messagebus(556)
      2023-06-28 04:40:21 [root:useradd] cyrus(60):cyrus(60):the cyrus mail server:/nonexistent:/usr/sbin/nologin
      2023-06-28 04:40:21 [root:groupadd] cyrus(60)
      "

      2023-10-22 17_36_27-Status_ System Logs_ Authentication_ OS Account Changes - home.arpa.png

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        June 28th was the build date for 2.7. I'd guess those changes happened before ntp kicked in and set the current date. Before that it uses the most recent timestamp from the filesystem if for some reason it cannot read the system time/date.
        Which cloud infrastructure is that?

        Steve

        W 1 Reply Last reply Reply Quote 0
        • W
          Wolfgangthegreat @stephenw10
          last edited by

          @stephenw10 It is Linode (now Akamai who bought them)

          It is not logical to me - before NTP, I expect an install and OS to take the date and time from the "local" computer clock, and only later, when there is a working networking and NTP, to adjust the time, and even then, it should not be by a gap of several months...

          Isn't it possible that these logs remained in the install ISO and copied to the new install as part of the install process?

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Yes, it would only do that on systems where it cannot read the system clock or the system clock is not battery backed like the 1100.

            Yes, it's possible something remained logged from the build process.

            W 1 Reply Last reply Reply Quote 0
            • W
              Wolfgangthegreat @stephenw10
              last edited by

              @stephenw10 to open a bug for this?
              I guess it needs to be checked - either the release process or the install process

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                I see exactly the same thing on an instance I installed two days ago:

                2023-06-28 04:45:51 [root:groupadd] cyrus(60)
                2023-06-28 04:45:51 [root:useradd] cyrus(60):cyrus(60):the cyrus mail server:/nonexistent:/usr/sbin/nologin
                2023-06-28 04:45:52 [root:groupadd] messagebus(556)
                2023-06-28 04:45:52 [root:useradd] messagebus(556):messagebus(556):D-BUS Daemon User:/nonexistent:/usr/sbin/nologin
                2023-06-28 04:45:54 [root:groupadd] openvpn(301)
                2023-06-28 04:45:54 [root:useradd] openvpn(301):openvpn(301):OpenVPN pseudo-user:/nonexistent:/usr/sbin/nologin
                2023-06-28 04:45:54 [root:groupadd] dhcpd(136)
                2023-06-28 04:45:54 [root:useradd] dhcpd(136):dhcpd(136):ISC DHCP daemon:/nonexistent:/usr/sbin/nologin
                2023-10-20 22:07:43 [unknown:groupadd] all(1998)
                2023-10-20 22:07:43 [unknown:usermod] root(0):wheel(0):Charlie &:/root:/bin/sh
                2023-10-20 22:07:43 [unknown:useradd] admin(0):wheel(0):System Administrator:/root:/etc/rc.initial
                2023-10-20 22:07:43 [unknown:useradd] admin(0) home /root made
                2023-10-20 22:07:43 [unknown:groupmod] all(1998)
                2023-10-20 22:07:43 [unknown:groupadd] admins(1999)
                2023-10-20 22:23:41 [root:usermod] root(0):wheel(0):Charlie &:/root:/bin/sh
                2023-10-20 22:23:41 [root:usermod] admin(0):wheel(0):System Administrator:/root:/etc/rc.initial
                

                So I don't think this is a bug.

                W 1 Reply Last reply Reply Quote 0
                • W
                  Wolfgangthegreat @stephenw10
                  last edited by

                  @stephenw10 The other way round... ;) it is a consistent bug...

                  In my view a newly installed software, assuming the local "pc" has a correct date and time, should not have any log record that is prior to the date-time the installation started. Looks logical and basic to me.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    I guess you can view it like that. ๐Ÿ˜‰

                    Open a bug report for discussion.

                    W 1 Reply Last reply Reply Quote 1
                    • W
                      Wolfgangthegreat @stephenw10
                      last edited by Wolfgangthegreat

                      @stephenw10 Of course... https://redmine.pfsense.org/issues/14909

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        I mentioned it on the Redmine issue but I'll add it here as well: Those entries are from when the installation image itself was built for that version.

                        It's normal/expected for them to have that date/time because that's when those users were added to the system as it was being built.

                        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        W 1 Reply Last reply Reply Quote 0
                        • W
                          Wolfgangthegreat @jimp
                          last edited by

                          @jimp But why do you think is it OK to ship a product to customers with existing logs from before the installation time?

                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            Because it accurately reflects when those changes were made to the system accounts.

                            We could wipe that log during the installation but then the data about when those accounts were added would be lost/hidden which is worse, IMO.

                            At least until the system is updated, the log entries line up with the system and kernel build times which are easy to verify.

                            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            W 1 Reply Last reply Reply Quote 1
                            • W
                              Wolfgangthegreat @jimp
                              last edited by

                              @jimp Thanks for your reply.
                              My view is that customers need to get a clean system, without any historical logs, which I don't see as helpful in any way, to get a clean system, but of course it is your call.

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

                                @Wolfgangthegreat you can just clean the log when you install.. Its a simple click of a button ;)

                                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.8, 24.11

                                1 Reply Last reply Reply Quote 1
                                • jimpJ
                                  jimp Rebel Alliance Developer Netgate
                                  last edited by

                                  It's more "clean" (as in unaltered) to leave the records as they are from the builder than to delete data for the sake of hiding it. I'd rather a system have an audit trail from the time it was built, not just when it was installed/instantiated.

                                  Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                                  Need help fast? Netgate Global Support!

                                  Do not Chat/PM for help!

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