I think this has something to do with owner permissions. The mount locations in fstab are in the owncloud folder /var/www/html/owncloud and I assigned apache:apache and 777 to the folders recursively. When fstab runs it defaults the owner status back to root:root and I can’t change it until I unmount the CIFS share.
Steps to reproduce
- mount windows share using fstab and enable local folder support in config.php
- Assign AD users/groups to folder in Owncloud
- Try to access the folder as said user
I should have full read/write permissions to the folder
I can read but not write. Error is shown " You don’t have permission to upload or create files here ownCloud Files"
Operating system: centos 7
Web server: Apache
PHP version: 7.2.32
ownCloud version: (see ownCloud admin page) 10
Updated from an older ownCloud or fresh install: fresh install
Where did you install ownCloud from: Yum and Pip
Signing status (ownCloud 9.0 and above):
Login as admin user into your ownCloud and access http://example.com/index.php/settings/integrity/failed paste the results into https://gist.github.com/ and put the link here. No errors have been found. **The content of config/config.php:** <?php $CONFIG = array ( 'updatechecker' => false, 'instanceid' => 'instanct id', 'passwordsalt' => 'salt password', 'secret' => 'secret', 'trusted_domains' => array ( 0 => 'my FQDN', 1 => 'my local IP', ), 'datadirectory' => '/var/www/html/owncloud/data', 'overwrite.cli.url' => 'https://my local IP/owncloud', 'dbtype' => 'mysql', 'version' => '10.5.0.2', 'dbname' => 'dbname', 'files_external_allow_create_new_local' => 'true', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'oc_root', 'dbpassword' => 'db password', 'logtimezone' => 'UTC', 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/html/owncloud/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/html/owncloud/apps-external', 'url' => '/apps-external', 'writable' => true, ), ), 'installed' => true, 'ldapIgnoreNamingRules' => false, 'updater.secret' => 'secret', 'loglevel' => 2, 'maintenance' => false, 'trusted_domains' => array ( 0 => 'localhost', 1 => 'my external IP', 2 => 'my FQDN', ), ); Log in to the web-UI with an administrator account and click on 'admin' -> 'Generate Config Report' -> 'Download ownCloud config report' This report includes the config.php settings, the list of activated apps and other details in a well sanitized form. or If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your ownCloud installation folder *ATTENTION:* Do not post your config.php file in public as is. Please use one of the above methods whenever possible. Both, the generated reports from the web-ui and from occ config:list consistently remove sensitive data. You still may want to review the report before sending. If done manually then it is critical for your own privacy to dilligently remove *all* host names, passwords, usernames, salts and other credentials before posting. You should assume that attackers find such information and will use them against your systems.
List of activated apps:
If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your ownCloud installation folder.
Are you using external storage, if yes which one: local/smb/sftp/…
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
LDAP configuration (delete this part if not used)
With access to your command line run e.g.: sudo -u www-data php occ ldap:show-config from within your ownCloud installation folder Without access to your command line download the data/owncloud.db to your local computer or access your SQL server remotely and run the select query: SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap'; Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Web server error log
Insert your webserver log here
ownCloud log (data/owncloud.log)
Insert your ownCloud log here