Ignore data folder permissions

Hi,
I moved my data folder to another folder which has 777. It’s a USB NTFS disk so I know that it’s not secure. It’s a closed network and air gapped so I know exactly that I am ok with it. when I try to login I get:

Please change the permissions to 0770 so that the directory cannot be listed by other users.

Is there a way to just tell ownCloud to ignore this check and continue anyways?

I tried adding:

‘check_data_directory_permissions’ => false,

to config.php but it still didn’t work. I tried to find out what version of ownCloud I have but I get an error:

Any help would be greatly appreciated.

THanks

While modifying the config.php to ignore permission checks is not recommended, there might be a way around it if you understand the risks.

However, editing the config.php to skip permission checks is generally not recommended because it can lead to security vulnerabilities. NTFS file systems don’t support Linux file permissions like 0770, so ownCloud may not function as expected.

I would advise against setting permissions to 777, even on a closed network. There could be potential risks you’re not considering. A better approach would be to set the folder permissions to 0755 and chown the directory to the user running the webserver process (e.g. www-data). This would give the webserver user ownership and permissions to read, write, and execute the files while all other users would be restricted from write access.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.