chown use
-
@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.
-
@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
-
@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 thesquid_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
-
@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
-
I GOT IT~~~!!! Update coming soon
-
https://forum.netgate.com/topic/195843/unofficial-guide-have-squid-logs-record-to-a-secondary-ssd-drive
-
@patient0 Quick Question,
what is normally in the mnt and media folders on pfsense?
-
@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
-
@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.
-
@JonathanLee I'm sure someone with longer and deeper understanding of pfSense will be able to answer that.