Results 1 to 2 of 2

Thread: qweborf and weborf for file sharing

  1. #1
    Join Date
    Jul 2007
    Beans
    174
    Distro
    Ubuntu 16.04 Xenial Xerus

    qweborf and weborf for file sharing

    Hi!

    Needed a quick and easy way to share files, and managed to find "weborf" in the repos.

    Starting it using the GUI ("qweborf"), you can specify Authentication on the second tab. Perfect, just what I wanted!

    But, I also want it running as a daemon, using the package "weborf-daemon", so I installed it. It works great, but I cannot figure out how to use authentication this way!
    The Ubuntu manual (http://manpages.ubuntu.com/manpages/.../weborf.1.html) refers to the author website (http://galileo.dmi.unict.it/wiki/web...authentication) but I cannot grasp how to get it to work.

    Anyone tried this?

    Howto for dummies, please...

  2. #2
    Join Date
    Oct 2011
    Beans
    3

    Smile Re: qweborf and weborf for file sharing

    Hello,

    I am afraid that you will need some programming to do so.

    Open the file: /usr/share/doc/weborf/examples/auth.py
    It is an example of authentication script for weborf. You can modify it according to your needs. For example if you need a certain username and password you can use the following condition (to replace the condition in the example file):

    Code:
    if not ('username' == data[3] and 'password' == data[4]):
        conn.send(' ')
    conn.close()
    Now save the new file somewhere like /usr/local/sbin/weborf.auth and give it exec permissions.

    Also replace /tmp/weborf_auth.socket with /run/weborf.auth

    Now you must edit /etc/weborf.conf and set

    auth-bin=/usr/local/sbin/weborf.auth
    auth-socket=/run/weborf.auth

    After you did it, weborf will run with autentication.
    Last edited by Lt_Worf; January 27th, 2013 at 11:11 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •