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

    Edit File how to save ?

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 2 Posters 791 Views 2 Watching
    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.
    • chudakC Offline
      chudak
      last edited by

      I am trying to use the Edit File package via WebGUI, load file, save but changes never get committed after I reopen it again.

      What am I missing ?

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

        I take it your on 2.5/21.02?

        You click the save button.. It will say saved..

        Here I edited my etc/hosts file - added an entry.. Hit saved, then from prompt did a cat of the file and you can see my edit is there.

        What specific file are you trying to edit?

        savefile.png

        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

        chudakC 1 Reply Last reply Reply Quote 1
        • chudakC Offline
          chudak @johnpoz
          last edited by

          @johnpoz

          i do this

          41d87e16-f477-4fd2-a9cd-0d60b3dce56b-image.png

          AllowAgentForwarding yes - changed to yes, File saved successfully.

          Reload sshd and saved changes are gone.
          Sounds like reload keeps the initial settings...
          hmm.... dunno

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

            You can not edit that file, settings are stored in xml.. So reload would recreate the config from the xml settings.

            Just set that here

            sshsetting.png

            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

            chudakC 1 Reply Last reply Reply Quote 0
            • chudakC Offline
              chudak @johnpoz
              last edited by

              @johnpoz said in Edit File how to save ?:

              You can not edit that file, settings are stored in xml.. So reload would recreate the config from the xml settings.

              Wow, that's cool
              How would you edit it then ?

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

                see my edit.. posted pic of where

                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

                chudakC 1 Reply Last reply Reply Quote 0
                • chudakC Offline
                  chudak @johnpoz
                  last edited by

                  @johnpoz said in Edit File how to save ?:

                  see my edit.. posted pic of where

                  Got that, thx!

                  However it did not fix my issue https://forum.netgate.com/topic/161275/x11-forwarding-request-failed-on-channel-0-after-2-5-0 :(

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