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

    chown use

    Scheduled Pinned Locked Moved General pfSense Questions
    13 Posts 2 Posters 756 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.
    • JonathanLeeJ
      JonathanLee @patient0
      last edited by JonathanLee

      @patient0 Thanks so I have this under a fat32 file system because I could not mount the freebsd zfs filesystem it said integerity issues when I would try to mount it

       Shell Output - gpart show nda0
      =>       40  500118112  nda0  GPT  (238G)
               40       2008        - free -  (1.0M)
             2048   16777216     1  freebsd-swap  (8.0G)
         16779264  482344960     2  efi  (230G)
        499124224     993928        - free -  (485M)
      

      I am using 2 efi

      Make sure to upvote

      patient0P 1 Reply Last reply Reply Quote 0
      • patient0P
        patient0 @JonathanLee
        last edited by

        @JonathanLee you can try (or search for similar topic)

        https://forums.freebsd.org/threads/mount-usb-stick-with-fat32-file-system.56675/

        "By default, only root is allowed to mount devices. You need to make a few changes to allow users to mount things.
        

        I'm out of my depth on FreeBSD here and have not tried the above mentioned! If you can specify the exact device and the user you want to use for that partition it may work - if the device number won't change.

        JonathanLeeJ 1 Reply Last reply Reply Quote 0
        • JonathanLeeJ
          JonathanLee @patient0
          last edited by

          @patient0 I figured it out after you create the mount folder you have to change the permissions before you mount it if you do it after it is locked it and can't be changed. Again, that still gives me errors for Squid accessing it and utilizing it for logs. But it works for chown

          Make sure to upvote

          patient0P 1 Reply Last reply Reply Quote 0
          • patient0P
            patient0 @JonathanLee
            last edited by patient0

            @JonathanLee that user and group are correct now as squid:proxy?

            In general the squid:proxy user/group has to be able to get to /root/LOGS_Optane/squid_logs. Meaning /root/LOGS_Optane has to be accessable/traversible for everybody otherwise Squid won't be able to see the squid_logs directory.

            What would the output be of:

            ls -ld /root
            ls -ld /root/LOGS_Optane
            

            If for example it is like below then squid won't be able to reach the squid logs directory because Squid (category 'other' users) doesn't have rights to change into the /root/ directory.

            ls -ld /root/
            drwxr-x---  6 root wheel 512 Jan  4 13:11 /root/
            

            BUT: don't change the permissions for /root! Mount the Optane somewhere "neutral", like /mnt/ or /media

            JonathanLeeJ 2 Replies Last reply Reply Quote 1
            • JonathanLeeJ
              JonathanLee @patient0
              last edited by JonathanLee

              @patient0 I got it to be squid proxy the correct way for my folder only not root, again it is a mount point squid still did not like it. I am going to move it to something like mount. I will have to try Monday my family is here and each time it fails the whole proxy crashes with errors saying it can’t write logs. So I got to try when everyone is gone

              Make sure to upvote

              1 Reply Last reply Reply Quote 0
              • JonathanLeeJ
                JonathanLee
                last edited by

                I GOT IT~~~!!! Update coming soon

                Make sure to upvote

                1 Reply Last reply Reply Quote 0
                • JonathanLeeJ
                  JonathanLee
                  last edited by

                  https://forum.netgate.com/topic/195843/unofficial-guide-have-squid-logs-record-to-a-secondary-ssd-drive

                  Make sure to upvote

                  1 Reply Last reply Reply Quote 1
                  • JonathanLeeJ
                    JonathanLee @patient0
                    last edited by

                    @patient0 Quick Question,

                    what is normally in the mnt and media folders on pfsense?

                    Make sure to upvote

                    patient0P 1 Reply Last reply Reply Quote 0
                    • patient0P
                      patient0 @JonathanLee
                      last edited by

                      @JonathanLee

                      @JonathanLee said in chown use:

                      what is normally in the mnt and media folders on pfsense?

                      Nothing on my pfSense but I'm not sure if any packages mount stuff in there.

                      # ls -l /mnt /media/
                      /media/:
                      total 0
                      
                      /mnt:
                      total 0
                      
                      JonathanLeeJ 1 Reply Last reply Reply Quote 0
                      • JonathanLeeJ
                        JonathanLee @patient0
                        last edited by

                        @patient0 Thanks I started to question if that is a good place to use for the drive I have it dumping logs to it with symbolic links, Squid, Syslog, Snort, I want to cut down on the main ssd use so I have it using this Intel Optane, I started to wonder if mnt is ever used by software locally and if I have something mounted to it can that cause issues.

                        Make sure to upvote

                        patient0P 1 Reply Last reply Reply Quote 0
                        • patient0P
                          patient0 @JonathanLee
                          last edited by

                          @JonathanLee I'm sure someone with longer and deeper understanding of pfSense will be able to answer that.

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