Nextcloud Directory Showing for all Users

Nextcloud version ( 13.0.1):
Operating system and version (Ubuntu 16.04):
Apache or nginx version ( Apache 2.4.25):
PHP version (eg, 7.0):

The issue you are facing:
Each user has a folder (mine initially had the ‘shortcut’ icon on) called “Nextcloud” which has every folder in the nextcloud data directory, including other users. What config could have caused this? At the moment, it’s not secure, as all my users can see each other’s data. The folder is auto generated when a new user is created, and cannot be deleted. See attached screengrab for more info. Thanks.

Is this the first time you’ve seen this error? (Y):

Steps to replicate it:

  1. Navigate to nextcloud web interface.
  2. Login
  3. See the “Nextcloud” folder within all files view

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '********',
  'passwordsalt' => '*****',
  'secret' => '*******',
  'trusted_domains' => 
  array (
    0 => '******.co.uk',
  ),
  'datadirectory' => '/media/administrator/Data/',
  'overwrite.cli.url' => 'https://*********.co.uk/nextcloud',
  'dbtype' => 'mysql',
  'version' => '13.0.1.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_Admin',
  'dbpassword' => '*******',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => '****',
  'mail_domain' => '***.com',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.***.com',
  'mail_smtpport' => '***',
  'mail_smtpname' => '***@****.com',
  'mail_smtppassword' => '**',
  'maintenance' => false,
);

The output of your Apache/nginx/system log in /var/log/____:

[Sun Apr 29 07:35:02.038560 2018] [mpm_prefork:notice] [pid 26539] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Sun Apr 29 07:35:02.038584 2018] [core:notice] [pid 26539] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 29 09:49:33.377713 2018] [mpm_prefork:notice] [pid 26539] AH00169: caught SIGTERM, shutting down
[Sun Apr 29 09:49:34.438439 2018] [mpm_prefork:notice] [pid 6660] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Sun Apr 29 09:49:34.438482 2018] [core:notice] [pid 6660] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 29 09:51:49.523938 2018] [ssl:error] [pid 6686] [client 64.41.200.108:38078] AH02042: rejecting client initiated renegotiation
[Sun Apr 29 09:56:20.611396 2018] [mpm_prefork:notice] [pid 6660] AH00169: caught SIGTERM, shutting down
[Sun Apr 29 09:56:21.663439 2018] [mpm_prefork:notice] [pid 6881] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Sun Apr 29 09:56:21.663481 2018] [core:notice] [pid 6881] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 29 10:49:05.000552 2018] [mpm_prefork:notice] [pid 6881] AH00169: caught SIGTERM, shutting down
[Sun Apr 29 10:57:44.034789 2018] [mpm_prefork:notice] [pid 8141] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Sun Apr 29 10:57:44.034839 2018] [core:notice] [pid 8141] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 29 11:01:41.222112 2018] [mpm_prefork:notice] [pid 8141] AH00169: caught SIGTERM, shutting down
[Sun Apr 29 11:07:10.573523 2018] [mpm_prefork:notice] [pid 8483] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Sun Apr 29 11:07:10.573568 2018] [core:notice] [pid 8483] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 29 11:09:49.484015 2018] [mpm_prefork:notice] [pid 8483] AH00169: caught SIGTERM, shutting down
[Sun Apr 29 11:11:06.154872 2018] [mpm_prefork:notice] [pid 8733] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Sun Apr 29 11:11:06.154917 2018] [core:notice] [pid 8733] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 29 11:13:01.076075 2018] [mpm_prefork:notice] [pid 8733] AH00169: caught SIGTERM, shutting down
[Sun Apr 29 11:13:02.186985 2018] [mpm_prefork:notice] [pid 8838] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Sun Apr 29 11:13:02.187028 2018] [core:notice] [pid 8838] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 29 11:13:47.082725 2018] [mpm_prefork:notice] [pid 8838] AH00169: caught SIGTERM, shutting down
[Sun Apr 29 11:25:04.467102 2018] [mpm_prefork:notice] [pid 20070] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Sun Apr 29 11:25:04.467148 2018] [core:notice] [pid 20070] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 29 11:27:09.512746 2018] [mpm_prefork:notice] [pid 20070] AH00169: caught SIGTERM, shutting down
[Sun Apr 29 11:27:10.631642 2018] [mpm_prefork:notice] [pid 20173] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Sun Apr 29 11:27:10.631688 2018] [core:notice] [pid 20173] AH00094: Command line: '/usr/sbin/apache2'

Is the nextcloud folder connected via external storage? The icon points in that direction. If so, the problem could be caused by the external storage.

1 Like

Hiya,

It’s not an external storage per se, it’s another physical disk inside the machine- Ubuntu and NC are running on the SSD, the data directory is on it’s own drive. Would that cause this issue do you think?

Thanks.

Yes. You can share it to only one user or more where you have set this.

1 Like

So thanks to your answer, I had a lightbulb moment- I had set up the Data drive as the NC Data Directory in the config, but also had added it as an external storage- so everything on the disk could be read as an external share! Thanks for the help!

When you want to move out your data directory, you can use this howto: