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

    Can't write my access.log on my mountet USB-Drive

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 2.0k 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.
    • G
      gucky66
      last edited by

      Hi everyone,

      i use pfsense on an alix-board.
      Now i want write logs from the squid-proxy at my mounted USB-Stick.

      I mount it with

      mount_msdosfs /dev/da0s1 /mnt

      all ok.

      But i get a Squid message:

      Oct 17 12:06:54 squid[56522]: Cannot open '/mnt/access.log' for writing. The parent directory must be writeable by the user 'proxy', which is the cache_effective_user set in squid.conf.

      When i try

      chmod 777 /mnt

      it happend nothing.

      A other try was create a files in /mnt named access.log
      and
      chmod 777 access.log

      But it haven't any result:
      -rwxr-xr-x  1 root  wheel        2 Oct 17 12:10 access.log

      Can anyone help me?

      thx gucky66

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        Change log folder owner to squid user.
        Thats what squid is asking you todo.

        After changing it, restart squid.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • G
          gucky66
          last edited by

          Hi marcelloc,

          yes i want to do this, but first i try the chmod command.

          But you see the result:

          the access.log wasn't change.

          May it's a problem with the
          / file system:
          [root@pfSense.local]/mnt(73): mount
          /dev/ufs/pfsense0 on / (ufs, local, read-only)
          …

          How can i change the read-only ?

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            I do not use pfsense on embended system.

            So, not sure about this. Try to chance /etc/fstab.

            On packages, we call a mount_rw funtion before write config files.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • G
              gucky66
              last edited by

              Hi, i find the solution:

              i must change the read-only option:

              with:
              mount -uw /dev/ufs/pfsense0
              it switched off

              for switched on i use:
              mount -ur /dev/ufs/pfsense0

              THX –> to be closed

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