X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=config%2Fdoldacond.conf;h=8784fedf9937aa206f427ce0a8b871556a6e4816;hb=78ba3ee1d71032a1325036d5cefa8d0549d76ccd;hp=d855cc5857ddd6eaf647c319e876dfe1bc91df10;hpb=95d5ceaaee340ad89d87ec02dd89d5be75882533;p=doldaconnect.git diff --git a/config/doldacond.conf b/config/doldacond.conf index d855cc5..8784fed 100644 --- a/config/doldacond.conf +++ b/config/doldacond.conf @@ -1,18 +1,35 @@ # Dolda Connect default configuration file +# This is a sample configuration file. It contains only the most +# common configuration -- for information on the rest, please see the +# doldacond.conf(5) manual page. + # Default nick name set cli.defnick DoldaConnectUser +# Shares: The syntax is "share sharename sharepath", where sharename +# is the name of the share as the peers see it, and sharepath is the +# local path to the shared files. +share Video /home/pub/video +share Music /home/pub/audio + # Net mode: # 0 - Active # 1 - Passive # 2 - Will be SOCKS proxy when implemented set net.mode 0 +# If -1, the daemon will not listen for UI connections over TCP at all +# (only on a local Unix socket). Please comment the following line to +# enable listening for TCP UI connections on the default port, but +# read the INSTALL file first. +set ui.port -1 + # If 1, then accept UI connections only over the loopback interface set ui.onlylocal 0 -# If 1, then enable authenticationless login (don't use without turning on ui.onlylocal, unless you know what you're doing) +# If 1, then enable authenticationless login (don't use without +# turning on ui.onlylocal, unless you know what you're doing) set auth.authless 0 set transfer.slots 6 @@ -29,11 +46,7 @@ set transfer.slots 6 # LAN(T3) set dc.speedstring LAN(T1) # Description string: -set dc.desc Dolda Connect User - -# Shares: "share sharename sharepath", where sharename is the name of the share as the peers see it, and sharepath is the local path to the shared files -share Video /home/pub/video -share Music /home/pub/audio +set dc.desc "Dolda Connect User" # Allowed users and privileges # Syntax is "user username [-]privs..." @@ -49,8 +62,13 @@ share Music /home/pub/audio # all - Equivalent of specifying all the above permissions, including disallow # A minus sign preceding a privilege specification revokes that privilege (or, for "all", revokes all privileges, _including_ "disallow"). # The privileges are scanned from left to right, so "all -disallow" is not the same as "-disallow all". - -# In this default configuration, the user called "youruser" (that is, change it), -# has all privileges except, of course, "disallow", and all other users are disallowed from logging in. -user default disallow -user youruser all -disallow +# +# By default, if the daemon is not running as root, it will allow the +# user as which it is running, and noone else. If that matches your +# setup, there is no need to add any user directives. +# +# If, on the other hand, you run your daemon as root, use the +# following template and add the users you want with the privileges +# you want. +#user default disallow +#user youruser all -disallow