ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    NextCloud: Unrecoverablely broken?

    IT Discussion
    ubuntu 18.04 nextcloud shares file permissions share permissions
    3
    8
    698
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gjacobseG
      gjacobse
      last edited by

      I am hoping that I haven't managed to really break my instance of NC. That being said - it's a chance to learn what to do, what I shouldn't have done, and more importantly - how to fix it (I hope) without killing it - yet again (Snapshots are in place)

      My NC is for a few fellows I game with, we record and share videos of our game play - some more funny than others. More recently, I've added the Recipe module for my and family use.

      However, last night I learned that a share wasn't visible to one of the fellows even though he is in the group. I dis\joined him to the group, which of course didn't resolve the issue.

      3b69a4e8-9279-4696-8cac-343822d9b4fa-image.png

      Top of this image is the directory that is shared. I see that a few files show different permissions over the rest.

      The bottom is my user/files folder where the share is located. - and again I see that a few folders are different - which here I would understand. Only two of these folders are shared, one to a single person, the other to the group.

      Folders in red boxes are the only ones shared.

      I've had to recover from 'errors' using the SnapShot - and after doing so, re-uploaded the files, reset the permissions and updated the database. However - some how or another - something is amiss as not everyone can see the share(s).

      Scan and update database:

      cd /var/www/html/
      sudo -u www-data php occ files:scan --all
      

      Correct file permissions / ownership - Done for each user

      sudo chmod 755 -R /var/www/html/data/user29801/
      sudo chown -R www-data:www-data user29801/
      

      I am hoping there is a reasonable process to correct this over having to yet again kill it, it's not a huge issue for me,.. but the fellows I game with are pretty tired of issues in accessing it. - to be honest - so am I.

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • gjacobseG
        gjacobse
        last edited by

        Maybe -

        Is it possible that by 'fixing' the file permissions via cli I managed to 'break' the set permissions on the share? I went to the Share/settings and seems that the groupname was missing. may have resolved the issue...

        scottalanmillerS 2 Replies Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @gjacobse
          last edited by

          @gjacobse said in NextCloud: Unrecoverablely broken?:

          we record and share videos of our game play - some more funny than others. More recently, I've added the Recipe module for my and family use.

          YouTube or Twitch for this.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            Bottom line, in NextCloud you shouldn't be looking at the files from the command line, ever. Not NextCloud files anyway. Permissions are meant to be handled by the app and it's database, not by the filesystem.

            gjacobseG JaredBuschJ 2 Replies Last reply Reply Quote 1
            • gjacobseG
              gjacobse @scottalanmiller
              last edited by

              @scottalanmiller said in NextCloud: Unrecoverablely broken?:

              Bottom line, in NextCloud you shouldn't be looking at the files from the command line, ever. Not NextCloud files anyway. Permissions are meant to be handled by the app and it's database, not by the filesystem.

              I’ll keep that in mind.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @gjacobse
                last edited by

                @gjacobse said in NextCloud: Unrecoverablely broken?:

                Maybe -

                Is it possible that by 'fixing' the file permissions via cli I managed to 'break' the set permissions on the share? I went to the Share/settings and seems that the groupname was missing. may have resolved the issue...

                Yes, that would be expected. Any change of any type to those perms would be expected to be breaking.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @gjacobse
                  last edited by

                  @gjacobse said in NextCloud: Unrecoverablely broken?:

                  I went to the Share/settings and seems that the groupname was missing. may have resolved the issue...

                  Yeah, that's where it has to be handled. That's the only place that those perms exist. They are part of NC, and NC only.

                  1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch @scottalanmiller
                    last edited by

                    @scottalanmiller said in NextCloud: Unrecoverablely broken?:

                    Bottom line, in NextCloud you shouldn't be looking at the files from the command line, ever. Not NextCloud files anyway. Permissions are meant to be handled by the app and it's database, not by the filesystem.

                    Well mostly. Nextcloud needs the files to have the right system permissions.

                    But user permissions have nothing to do with system permissions.

                    Also, for a few specific instances, I do quite a bit with Nextcloud files on the command line. But that is a very specific use case, and also has nothing to do with group or share permissions.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post