Strange problem with cfdirectory on ubuntu, access to smbfs on windows

A strange problem. We use the cf web server to access the NAS. We tested this problem before nine and cannot understand the reason.

Problem: we get empty result sets that execute cfdirectory for a shared resource in a known directory with the correct package. However, we can ls from the cf server as the cf user and see everything without permission errors.

Tests we tried:

  • Creating a test file for the user — the way we are testing — is wrong.
  • Listing directories from python - works.
  • Performing a read and write of CFFILE from a damaging web server to the appropriate directory - works.
  • Running CFDIRECTORY in a local directory - works.
  • Running ls -la in the sudo'd directory for cfuser - works.
  • Running ls -la as root in the directory works.
  • Changing cf user permissions for root and retrying CFDIRECTORY failed.
  • Changing the mount to mount as root and retrying CFDIRECTORY fails.
  • The chown-ing files and parent directory and retrying CFDIRECTORY failed.
+3
source share
1 answer

I can only think of a few things. First, make sure your case is correct, as reading on the file system is case sensitive in CF on Linux.

Secondly, I was not lucky that I just read SMB with CF. In the past, I worked on installing a drive using SMB Fuse as a regular mount point and ensuring that the owner / group matches the CF user.

0
source

All Articles