Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

9p share in Unbuntu VM permissions changing

Featured Replies

Hi,

 

I have setup a Ubuntu server in a VM to run OwnCloud and MySQL. The docker version was not working for me as any changes to the docker version would be lost when a update was performed. I transferred everything over to the VM and got it working and upgraded to OwnCloud 10. It works, but...

 

I have:

  • Unraid 6.3.3
  • A share for Owncloud data directory. It is not exported.
  • The VM setup with that share mounted into /var/www/owncloud/data via fstab
    • data /var/www/owncloud/data 9p oversion=9p2000.L,gid=33,uid=33,file_mode=0700,dir_mode=0700 0 0
    • I have tried to force the gid, uid and mode, but it will not stick.
  • the user/group for the data directory is reporting as 99:users - when this is the case, OwnCloud will report errors about ownership and RW permissions for all users active.
  • if I change the user/group to www-data:www-data via chown and the permissions to 0700 via chmod they will stick for a short amount of time then change back to 99:users and all RW permissions are returned. When at www-data and 0700, OwnCloud works.
  • Inside the Data directory, the correct www-data uid, gid and mode is there and dosen't change.

 

SO what is causing the permissions and ownership to change back to 99:users and how can I stop it?

 

Thanks in advance, I hope I have enough info included.

 

Update - I had a thought it might be the "Fix Common Problems" causing this, so I excluded the owncloud share. No luck.

 

Here is the ls -la output 

 

root@ubuntu-owncloud:/var/www/owncloud# ls -la
total 192
drwxr-x--- 16 root     www-data  4096 Apr 30 18:06 .
drwxr-xr-x  4 root     root      4096 Apr 29 07:12 ..
drwxr-x--- 29 www-data www-data  4096 Apr 30 18:06 apps
drwxr-x---  2 www-data www-data  4096 Apr 19 12:14 assets
-rw-r-----  1 root     www-data  8859 Apr 26 21:40 AUTHORS
drwxr-x---  2 www-data www-data  4096 Apr 30 18:23 config
-rw-r-----  1 root     www-data  4056 Apr 26 21:40 console.php
-rw-r-----  1 root     www-data 34520 Apr 26 21:40 COPYING
drwxr-x--- 17 root     www-data  4096 Apr 30 18:06 core
-rw-r-----  1 root     www-data  4969 Apr 26 21:40 cron.php
drwxrwxrwx  1       99 users       12 May  1 03:01 data
-rw-r-----  1 root     www-data 30871 Apr 26 21:40 db_structure.xml
drwxr-x---  2 root     www-data  4096 Apr 19 12:14 etc
-rw-r--r--  1 root     www-data  2653 Apr 30 18:13 .htaccess
-rw-r-----  1 root     www-data   179 Apr 26 21:40 index.html
-rw-r-----  1 root     www-data  3257 Apr 26 21:40 index.php
drwxr-x---  3 root     www-data  4096 Apr 30 18:06 l10n
drwxr-x---  6 root     www-data  4096 Apr 30 18:06 lib
-rwxr-x--x  1 root     www-data   283 Apr 26 21:40 occ
drwxr-x---  2 root     www-data  4096 Apr 30 18:06 ocs
drwxr-x---  2 root     www-data  4096 Apr 30 18:06 ocs-provider
-rw-r-----  1 root     www-data  3197 Apr 26 21:40 public.php
-rw-r-----  1 root     www-data  5481 Apr 26 21:40 remote.php
drwxr-x---  4 root     www-data  4096 Apr 29 07:12 resources
drwxr-x--- 12 root     www-data  4096 Apr 30 18:06 settings
-rw-r-----  1 root     www-data  1757 Apr 26 21:40 status.php
drwxr-x---  2 www-data www-data  4096 Apr 30 18:06 themes
drwxr-x---  6 www-data www-data  4096 Apr 30 18:06 updater
-rw-r-----  1 root     www-data   163 Apr 28 00:08 .user.ini
-rw-r-----  1 root     www-data   218 Apr 26 21:44 version.php

 

 

 

server-nas-diagnostics-20170501-0727.zip

Edited by damienp
upload the diag file, include the unraid ver and update on FixCommon test

Pretty much my experience and probably many others as well.  Maps to shares just don't work unless you make everything same user:group that KVM is run as.  I use VirtualBox to run a Nextcloud VM for reasons like you have mentioned,  Just can't use VirtualBox and KVM at same time.  I have the Nextcloud data directory mapped to the cache drive while everything else is within the VM.

  • Author

Thanks unevent. I had that thought of having the same user groups. I just finished moving from Virtualbox to KVM to streamline things. 

 

In the short term, and I know this is a sledgehammer approach, I have set up a cron tasks for every 5 seconds to run chown and chmod on the data directory. Sync app will still trip up as 5 seconds is the longest possible time the permissions will be wrong, but I tend not to use the sync app anyway and just WebDAV in or via web

 

Edited by damienp
more info

Those issues with KVM and permissions issues with maps to user shares is the only reason I still use VirtualBox.  I still don't understand why the LT choice for KVM when it would be known such a basic required feature (in my opinion) would be left out.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.