Nextcloud changes one way; Windows changes won't stick

  • I have Samba enabled, and at first, I followed these instructions to change the permissions in the smb.conf file so that I could access Nextcloud from Windows. That didn't work. So I poked around more and went to Shared Folders > PHS > ACL and under "Extra Options," changed Owner and Group to www-data. That seemed to solve the issue and now I can both access my files on Windows and the web app for NextCloud. The issue now is that if I make a change on Nextcloud, it shows up in Windows. But if I make a change in Windows, Nextcloud web app won't show it (ignores it). It's like it's syncing one-way. I am totally lost on how to set up permissions. But I'm sure it's a permissions issue.

  • I deleted NextCloud and reinstalled everything, and I got the same issue. Didn't have permission to open the folder on Windows once I logged into NextCloud. I went to Samba settings in OMV, and under Shares, I chose the data folder where I have all my NextCloud stuff, and clicked on Edit. I toggled on Inherit Permissions. Once I did that, I could access the folder from Windows. What's weird, is if I toggle it off again, I can still access. But I still have the same issue where if I create a folder in Windows, the NextCloud web app won't show it.


    But then I confirmed that the folder is *indeed* there, by using Shellinabox to cd to the files section of my NextCloud data. I typed ls, and sure enough, my newly created folder is there. So it must be that NextCloud is not adding the folder to its database and so not showing up in the NextCloud web app? I guess?

  • You can achieve this by rescanning the NC filesystem.


    Code
    docker exec -it nextcloud bash
    sudo -u abc php /config/www/nextcloud/occ files:scan --all 
    exit

    also:


    I faced a similar problem since I also wanted to have access to my nextcloud files via smb.
    The best solution I came up (which is working flawlessly so far) is to integrate my main datafolder not directly into Nextcloud, but connect it as an external storage. This way the permissions are not an issue and Nextcloud is always in sync with changes made via smb.


    https://docs.nextcloud.com/ser…ge_configuration_gui.html

  • This is *exactly* the information I'm looking for!!! Thank you!!! I want to have symlinks, remote access, etc. But as far as I understand, the desktop client is for syncing, which I don't want. My laptop has 1 TB, but I have a massive amount of documents, pictures, videos, etc from over the years, and buying expensive laptop drives every time I run out of room is going to get pricy. So I figured it would be best to have a central server with all my files at home, but access to this server on each of my laptops. I also homeschool my kids, where someone is using a laptop, and I might need access to my files in a simple way. So my Odroid HC2 setup will make things easier.


    Thanks so much for your help! I was able to successfully add am external drive to NextCloud. My OCD is a bit bothered that I have to do it that way, but it will do. :)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!