[ZendTo] Library of Files

Jules Jules at Zend.To
Tue Aug 25 18:19:51 BST 2020


And also, make sure that the dirs and files in /var/zendto/library are 
all read-write by Apache and NOT globally writable.
You make each directory the username who owns those files, and then put 
the files in their dir.
If you're using SAML authentication, then the dir name needs to be the 
user's email address (i.e. whatever they log in with).

If you are running on CentOS/RedHat and might be using SELinux, then 
you'll probably need to tell SELinux the files in there are okay too:
     restorecon -FRv /var/zendto/library
Giving the files 777 *may* stop it working, as they are then globally 
writable (which a lot of things don't like!).
Create the username dirs and files as shown like this:
     chmod -R ug=rwX,o=rX /var/zendto/library
     chown -R apache:apache /var/zendto/library
If you are on Ubuntu/Debian, use "www-data" instead of "apache" in the 2 
lines above.

If you upload to there via webdav (as intended), then SELinux won't get 
in the way, as the web server creates the files in the first place, and 
all the permissions will be correct.

You will need to use htpasswd to write and update the contents of the 
/var/zendto/library.passwd file.
But that's all standard Apache / WebDAV stuff, not specific to ZendTo at 
all.

Hope that helps,
Jules.

On 20/08/2020 16:25, Massimo Forni via ZendTo wrote:
>
> No, sorry my bad, I was looking at the wrong directory…
>
> In addition what you are referring is the webdav access to the 
> filesystem directory for users to upload files
>
> Thank you anyway
>
> *From:*Travis Zimmerman <TZimmerman at fsu.edu>
> *Sent:* giovedì 20 agosto 2020 17:22
> *To:* ZendTo Users <zendto at zend.to>
> *Cc:* Massimo Forni <Massimo.Forni at turboden.it>
> *Subject:* Re: [ZendTo] Library of Files
>
> Did you uncomment the lines in Apache confs for the Library feature?
>
>   # Uncomment this to get the WebDAV support working, so users
>
>   # can easily upload files for the "library of files" feature.
>
>   # You also need to run these 3 commands as root:
>
>   #     a2enmod dav_fs
>
>   #     a2enmod dav
>
>   #     service httpd restart
>
>   #Alias /library /var/zendto/library
>
>   #<Location /library>
>
>   #        DAV on
>
>   #        AuthUserFile /var/zendto/library.passwd
>
>   #        AuthName "ZendTo Library"
>
>   #        AuthType Basic
>
>   #        Require valid-user
>
>   #</Location>
>
> ------------------------------------------------------
>
> Travis Zimmerman
>
> tzimmerman at fsu.edu <mailto:tzimmerman at fsu.edu>
>
> 850-645-8030
>
> Linux Enterprise Applications & Systems
>
> its-linuxadmins at fsu.edu <mailto:its-linuxadmins at fsu.edu>
>
> Information Technology Services, Florida State University
>
>
>
>     On Aug 20, 2020, at 10:47 AM, Massimo Forni via ZendTo
>     <zendto at zend.to <mailto:zendto at zend.to>> wrote:
>
>     Hello everyone,
>
>     I am trying the “Library of Files” features but I think something
>     must be off with my configuration as I am not seeing any changes
>     in the UI.
>
>     I set the preferences
>
>     'usingLibrary' => TRUE,
>
>     'libraryDirectory' =>NSSDROPBOX_DATA_DIR."library",
>
>     I also tried to give 777 as a permission to that library and the
>     test file inside but nothing works
>
>     I also tried creating a folder with the name equal to my username
>     and again no changes in the UI
>
>     Has anyone been successful using this feature?
>
>     Thank you!
>
>     --
>
>     *Massimo Forni*
>     ICT Infrastructure Manager
>
>     Mobile: +393474110278
>
>     ------------------------------------------------------------------------
>
>     *Turboden S.p.A.**I*via Cernaia 10*I*25124 Brescia*I*Italy
>     t. +39 030 3552001*I*f. +39 030 3552011
>     www.turboden.com
>     <https://urldefense.com/v3/__http:/www.turboden.com__;!!PhOWcWs!j53uPyXwMrdUJKgIhK6NZNun_z1mXL0ebiG9DoGVCqe6gYmDDZudzQRrh8euHXPIgw$>
>
>
>     *Confidentiality notice*: this message, together with its
>     attachments, may contain strictly confidential and/or legally
>     privileged information and it is destined solely to the intended
>     addressee(s), who only may use it under his/their responsibility.
>     Opinions, conclusions and other information contained in this
>     message, that do not relate to the official business of this firm,
>     shall be considered as not given or endorsed by it. If you have
>     received this communication in error, please notify us immediately
>     by responding to this email and then delete it from your system.
>     Any use, disclosure, copying or distribution of the contents of
>     this communication by a not-intended recipient or in violation of
>     the purposes of this communication is strictly prohibited and may
>     be unlawful.
>
>     _______________________________________________
>     ZendTo mailing list
>     ZendTo at zend.to <mailto:ZendTo at zend.to>
>     https://urldefense.com/v3/__http://jul.es/mailman/listinfo/zendto__;!!PhOWcWs!j53uPyXwMrdUJKgIhK6NZNun_z1mXL0ebiG9DoGVCqe6gYmDDZudzQRrh8ebiGcjFg$
>     <https://urldefense.com/v3/__http:/jul.es/mailman/listinfo/zendto__;!!PhOWcWs!j53uPyXwMrdUJKgIhK6NZNun_z1mXL0ebiG9DoGVCqe6gYmDDZudzQRrh8ebiGcjFg$>
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://jul.es/mailman/listinfo/zendto

Jules

-- 
Julian Field MEng CEng CITP MBCS MIEEE MACM

'Probability factor of one to one. We have normality. I repeat, we
  have normality. Anything you still can't cope with is therefore
  your own problem.' - Trillian, The Hitch Hikers Guide to the Galaxy

www.Zend.To
Twitter: @JulesFM

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20200825/1d4cb2f0/attachment-0001.html>


More information about the ZendTo mailing list