[miniGUIDE] How to share folders with OwnCloud read-only users

  • How to share folders with OwnCloud read-only users

    Requirements
    Onwcloud Plugin activated in Plugins section


    Description
    This guide is gonna show you how to share your folders that are stored in your NAS storage with OwnCloud users.


    Installation
    First thing to know is that OwnCloud users are imported from your OMV configuration.


    That means that they use your web user (www-data) to access all folders, and by the way, with admin privileges, so be very CAREFUL because if something is deleted in OwnCloud, it is really deleted in your storage !!!
    So here is what you have to do :

    • Create on your OMV administration panel a usertest within the users group :
    • Create a ReadOnly group where you can add your usertest :
    • Go to your Shared Folders, choose the folder you want to share and
      click on Privileges, there you can tick the Read-Only box for your
      ReadOnly group :
    • Go to your OwncLoud plugin administration and in the Shares tab you can add the folder you want to share :
    • Go to your OwnCloud page and add the External Storage Support :
    • Then go to the Users page :
    • Here you can see all the users imported from your OMV configuration
      (you can see that the user usertest goes with the ReadOnly group) :
    • After that verification go to the Admin page :
    • Here you can see all the folders that you added previously in the Shares Tab from the OwnCloud plugin (here's mine) :
    • You can add more by clicking on Add Storage and choose Local :
    • There you have to fill in the field with the path of your folder on
      your storage, here is how you can find it (by connecting to your OMV
      with SSH) :



      For example you can add the path /media/517da1a9-99a8-48b7-94ec-e937566a740d/Films to add your Films folder.


    • Then you have to make it applicable only to the admin group :
    • You can also uncheck the following box (as you wish) :
    • After that go to your Files, you can see that the admin group have the privilege to delete files :
    • Log out from your admin account and log in with your usertest account :
    • You can see that there is nothing here :
    • Return to your admin account, we now have to share the folder with the ReadOnly group :
    • Uncheck all the edition boxes :
    • Now log in to your usertest account, you can see that there is not nothing anymore but there is still the Delete Option :
    • Try to delete the folder :

      You can't !!!


      So you now have shared folders where your friends can't mess up with your files.


      Cheers mates.


    Questions / Problems / Discussions
    Click here to get to the discussions thread


    Version 1.0 // 18/02/2015

    - ASROCK FM2A88X-ITX+ (SATAIII (6Gb/s) x6 (for the DATA), mSATA x1 (for the OS))
    - AMD A6 7400K 3.5GHz
    - Corsair 2Go DDR3 1333MHz C9 (x2)
    - Intel Corporation 82574L Gigabit Network Connection
    - COOLER MASTER G450M (80+ bronze)
    - WD Red 2To 64Mo 3.5" SATAIII (6Gb/s)
    - 32 Go SSD mSATA KingSpec Half-Size Solid State
    - Fractal Design Node 304 black (HDD 3.5" x6)
    - RAID 5 XFS
    - OMV 4.1.35-1 Arrakis

    Einmal editiert, zuletzt von subzero79 ()

Jetzt mitmachen!

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