Koozali.org: home of the SME Server

Syntax to enable DAV on SME8

Offline rockinmyshoe

  • 3
  • +0/-0
Syntax to enable DAV on SME8
« on: January 14, 2014, 06:30:06 AM »
I'm trying to enable DAV on a SME8 server.  I configured two ibays one called box one called spits. The commands I found to enable DAV are;

db accounts setprop ibay-name ModDav enabled
signal-event ibay-modify ibay-name

with  name in the 'ibay-name' statement do i substitute the name of the ibay I created? 'ibay-box'

so is the command is updated as follows;

db accounts setprop ibay-box ModDav enabled
signal-event ibay-modify ibay-box

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Syntax to enable DAV on SME8
« Reply #1 on: January 14, 2014, 09:14:48 AM »
rockinmyshoe

ibay-name is the actual name of the ibay ie box or spits, so do

db accounts setprop box ModDav enabled
signal-event ibay-modify box
and
db accounts setprop spits ModDav enabled
signal-event ibay-modify spits

I suggest you read
http://wiki.contribs.org/Db_command_tutorial
&
http://wiki.contribs.org/DB_Variables_Configuration
& learn more about the db command & syntax, which will be very useful knowledge to have as you use sme server.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline rockinmyshoe

  • 3
  • +0/-0
Re: Syntax to enable DAV on SME8
« Reply #2 on: January 15, 2014, 06:27:17 AM »
thanks Janet,

I'm impressed with the extensive information on the wiki. Will look at the links you provided.


Once I have enabled the DAV, to login is it http://localhost/webdav/  ? .

I noted one example from the wiki shows http://localhost/data/ is that the equivalent? Or should i also be replacing /data/ with the name of the ibay used, i.e. box or spitz

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Syntax to enable DAV on SME8
« Reply #3 on: January 15, 2014, 07:03:34 AM »
Once I have enabled the DAV, to login is it http://localhost/webdav/  ? .

I noted one example from the wiki shows http://localhost/data/ is that the equivalent? Or should i also be replacing /data/ with the name of the ibay used, i.e. box or spitz

Use the iBay name, eg if you create an ibay named "MyiBayName" you woulkd use http://localhost/MyiBayName/
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Syntax to enable DAV on SME8
« Reply #4 on: January 15, 2014, 07:10:48 AM »
You might want to look at this contrib as it has more flexability than the standard iBays, including the ability to enable or disable Wedav per folder Shared Folders
--
qui scribit bis legit

Offline rockinmyshoe

  • 3
  • +0/-0
Re: Syntax to enable DAV on SME8
« Reply #5 on: January 15, 2014, 11:22:21 PM »
Thanks Terry
I took a look at Shared Folders, Installed the contibs and it works. I'll try that to see if it fits my needs.

I did notice this (note below) in the documentation. I know a very little about linux/sme, but I did not know how check the file system as shown. Also I did a,  man stab-sync  and it replied that no manual existed for that command.

Check your file system mounted in /home/e-smith/files/ has the acl option, for example:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    usrquota,grpquota,acl        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=SWAP-rd/c0d0p3    swap                    swap    defaults        0 0

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Syntax to enable DAV on SME8
« Reply #6 on: January 16, 2014, 04:50:02 AM »
Thanks Terry
I took a look at Shared Folders, Installed the contibs and it works. I'll try that to see if it fits my needs.

I did notice this (note below) in the documentation. I know a very little about linux/sme, but I did not know how check the file system as shown. Also I did a,  man stab-sync  and it replied that no manual existed for that command.

What that snippet is refering to is the /etc/fstab file may have to be edited manually to ensure that the acl option is added, this would normally only be necessary if if you have mounted another file system on /home/e-smith/files/

The following commad will show what you have..once the contrib is installed and you have restarted etc all should be good :-)

[root@sme ~]# mount
 
By the way cortesty mister wikipedia, (only as reliable as you want it to be ie don't trust it to much) An access control list (ACL), with respect to a computer file system, is a list of permissions attached to an object. An ACL specifies which users or system processes are granted access to objects, as well as what operations are allowed on given objects.[1] Each entry in a typical ACL specifies a subject and an operation. For instance, if a file has an ACL that contains (Alice, delete), this would give Alice permission to delete the file.
--
qui scribit bis legit