"sh: /conf/pfatt/bin/pfatt.sh: Permission denied" on pfSense 2.6 w/ ZFS #81

Open
opened 2023-04-06 22:33:43 +05:30 by MazuMoon · 4 comments
MazuMoon commented 2023-04-06 22:33:43 +05:30 (Migrated from github.com)

Not sure if this is an issue, or just something I’m doing wrong. I’m fairly new to pfSense and a lot of this is over my head.

I installed pfSense 2.6 on a Protectli Vault and selected ZFS for the filesystem. I followed the bridge method instructions from the supplicant branch, but couldn’t get it working, so I tried the master branch, and it worked fine. Then I decided try the supplicant method with certificates.

During bootup, I kept getting:

sh: /conf/pfatt/bin/pfatt.sh: Permission denied

My file permissions, showed:

-rwxr-xr-x 1 root wheel 9194 Apr 5 14:18 pfatt.sh

Since I couldn’t get it working, I moved pfatt.sh to /root/bin and left the certs in /conf/pfatt/wpa. I rebooted and everything worked as expected.

There’s a Netgate forum post (see Apr 26, 2022, 6:03PM & Jul 21, 2022, 4:24 PM) which discusses a similar permissions issue. They mention /conf being locked down and a Netgate admin says to use /root instead. That led me to try mount -p, which shows:

pfSense/cf/conf /cf/conf zfs rw,noexec,nosuid,noatime,nfsv4acls 0

I’m assuming noexec on the pfSense/cf/conf line means pfatt.sh can’t run in the /conf directory. Does this sound correct? If so, any issue with leaving pfatt.sh in /root/bin? Thanks.

Not sure if this is an issue, or just something I’m doing wrong. I’m fairly new to pfSense and a lot of this is over my head. I installed pfSense 2.6 on a Protectli Vault and selected ZFS for the filesystem. I followed the bridge method instructions from the supplicant branch, but couldn’t get it working, so I tried the master branch, and it worked fine. Then I decided try the supplicant method with certificates. During bootup, I kept getting: `sh: /conf/pfatt/bin/pfatt.sh: Permission denied` My file permissions, showed: `-rwxr-xr-x 1 root wheel 9194 Apr 5 14:18 pfatt.sh` Since I couldn’t get it working, I moved `pfatt.sh` to `/root/bin` and left the certs in `/conf/pfatt/wpa`. I rebooted and everything worked as expected. There’s a Netgate [forum post](https://forum.netgate.com/topic/39639/watchguard-xtm-5-series/1027?lang=en-US&page=3) (see Apr 26, 2022, 6:03PM & Jul 21, 2022, 4:24 PM) which discusses a similar permissions issue. They mention `/conf` being locked down and a Netgate admin says to use `/root` instead. That led me to try `mount -p`, which shows: `pfSense/cf/conf /cf/conf zfs rw,noexec,nosuid,noatime,nfsv4acls 0` I’m assuming `noexec` on the `pfSense/cf/conf` line means `pfatt.sh` can’t run in the `/conf` directory. Does this sound correct? If so, any issue with leaving `pfatt.sh` in `/root/bin`? Thanks.
owenthewizard commented 2023-04-07 01:44:34 +05:30 (Migrated from github.com)

I’m assuming noexec on the pfSense/cf/conf line means pfatt.sh can’t run in the /conf directory.

Correct

If so, any issue with leaving pfatt.sh in /root/bin?

No issue, just make sure you have the correct path(s) when calling the script, certificates, etc.

> I’m assuming noexec on the pfSense/cf/conf line means pfatt.sh can’t run in the /conf directory. Correct > If so, any issue with leaving pfatt.sh in /root/bin? No issue, just make sure you have the correct path(s) when calling the script, certificates, etc.
gpz1100 commented 2023-04-07 04:15:56 +05:30 (Migrated from github.com)

Is there a particular reason why /conf was chosen as the folder for the pfatt.* scripts in the first place? I recall this being used way back - 3+ years ago when the script first came about.

Is there a particular reason why /conf was chosen as the folder for the pfatt.* scripts in the first place? I recall this being used way back - 3+ years ago when the script first came about.
MazuMoon commented 2023-04-07 05:33:08 +05:30 (Migrated from github.com)

No issue, just make sure you have the correct path(s) when calling the script, certificates, etc.

Thanks!

> No issue, just make sure you have the correct path(s) when calling the script, certificates, etc. Thanks!
owenthewizard commented 2023-04-08 02:39:16 +05:30 (Migrated from github.com)

Is there a particular reason why /conf was chosen as the folder for the pfatt.* scripts in the first place?

To be honest I'm not familiar enough with pfSense to know.

> Is there a particular reason why /conf was chosen as the folder for the pfatt.* scripts in the first place? To be honest I'm not familiar enough with pfSense to know.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hhf/pfatt#81
No description provided.