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

    Is /usr/local a safe place to store things?

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 660 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.
    • senseivitaS
      senseivita
      last edited by

      I'd like to store some files in a place safe from being overwritten or cleared up by updates.

      It's only some basic scripts, for instance, push certificates out and rearrange/rename them as if they were obtained by certbot on the destination and create PFX copies for IIS' Centralized Certificates feature.

      I know it's OK in Linux and pre-iOSified macOS but I'm not sure about FreeBSD. If not /usr/local, what would be safe? /root maybe?

      Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

      fireodoF 1 Reply Last reply Reply Quote 0
      • fireodoF
        fireodo @senseivita
        last edited by

        @skilledinept said in Is /usr/local a safe place to store things?:

        /root maybe

        That would be safe - I use it myself since long time ...

        Regards,
        fireodo

        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
        pfsense 2.8.0 CE
        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

          /root or /conf should be safe. Waaay back when NanoBSD was a thing /conf was a separate mount point and was shared between the image slices so things there would never be overwritten.

          Steve

          senseivitaS 1 Reply Last reply Reply Quote 0
          • senseivitaS
            senseivita @stephenw10
            last edited by senseivita

            @stephenw10 @fireodo

            Thank you-thank you! I was holding out on it and learn a little more about scripting in the meantime.

            A while back I thought that I had to add data through the GUI (e.g. Diagnostics > Command Prompt) or it would get lost even without upgrades sort of like the TrueNAS console. In pfSense, I've noticed that sessions though SSH (and then option 8, not SSH+command) aren't the same though, like the history not being there plus the fact that they share base OS got me I was second guessing it.

            They should share network config, BTW, TrueNAS networking is insane.

            Thanks again!

            Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

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

              Another option here, if the files are small, is to use the Filer package. That includes additional files in the config file so they will be restored if you have to re-install completely.

              Steve

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