AFP - modified config

    • OMV 1.0
    • AFP - modified config

      While fiddling around i found this:

      # more /etc/netatalk/afpd.conf
      - -tcp -nosavepassword -nozeroconf -uamlist uams_dhx.so,uams_dhx2.so

      I assume Kralizec writes one (empty) field into afpd.conf, without checking the content. So theres the "-" which seems not to hurt but which is useless

      ---

      Another question

      If i like to modify the Startup Params for afpd (not afpd.conf)... where is the best way to do this without getting overwritten by omv (also omv updates)?
      Tom

      ----

      HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
      HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner
    • tom_tav wrote:

      I assume Kralizec writes one (empty) field into afpd.conf, without checking the content. So theres the "-" which seems not to hurt but which is useless


      All services behave that way (not checking content of config file).

      tom_tav wrote:

      If i like to modify the Startup Params for afpd (not afpd.conf)... where is the best way to do this without getting overwritten by omv (also omv updates)?


      Most plugins have a extra options box for that.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Not the content of the content file. I assume it takes lets say the content from the "extra options" box and writes to afpd.conf with leading "-". If the config box is empty it ends up "-" without param.

      ---

      Afp has a extra content box like stated above but imho this box adds just to afpd.conf. I need to modify the afpd -n startup option, not possible via afpd.conf. Normally omv creates the -n option with first part from hostname, i need to use another hostname.

      what it does:

      10698 ? S 0:00 /usr/sbin/afpd -U uams_dhx2.so,uams_clrtxt.so -g nobody -c 20 -n servername

      what i need

      10698 ? S 0:00 /usr/sbin/afpd -U uams_dhx2.so,uams_clrtxt.so -g nobody -c 20 -n otherservername

      (it works when i start it from the shell)


      EDIT:

      confirmed, the extra options just writes into afpd.conf:

      # more /etc/netatalk/afpd.conf
      - -tcp -nosavepassword -nozeroconf -uamlist uams_dhx.so,uams_dhx2.so

      # more /etc/netatalk/afpd.conf
      - -tcp -nosavepassword -nozeroconf -uamlist uams_dhx.so,uams_dhx2.so test
      Tom

      ----

      HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
      HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner

      The post was edited 1 time, last by tom_tav ().

    • got this error before starting to hack around:

      happens when i "apply changes" the first time, second time its ok ... somebody can reproduce?


      Failed
      to execute command 'export LANG=C; invoke-rc.d 'netatalk' start
      2>&1': Starting Netatalk services (this will take a while):
      cnid_metadcnid_metad is already running (pid = 20856), or the lock file
      is stale.
      invoke-rc.d: initscript netatalk, action "start" failed.

      Error
      #4000:
      exception 'OMVException' with message 'Failed to execute command 'export
      LANG=C; invoke-rc.d 'netatalk' start 2>&1': Starting Netatalk
      services (this will take a while): cnid_metadcnid_metad is already
      running (pid = 20856), or the lock file is stale.
      invoke-rc.d: initscript netatalk, action "start" failed.' in
      /usr/share/php/openmediavault/initscript.inc:169
      Stack trace:
      #0 /usr/share/php/openmediavault/initscript.inc(141):
      OMVSysVInitScript->invoke('start')
      #1 /usr/share/php/openmediavault/initscript.inc(61):
      OMVSysVInitScript->start()
      #2 /usr/share/openmediavault/engined/module/afp.inc(94):
      OMVSysVInitScript->exec()
      #3 /usr/share/openmediavault/engined/rpc/config.inc(206):
      OMVModuleAFP->startService()
      #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array,
      Array)
      #5 /usr/share/php/openmediavault/rpcservice.inc(125):
      call_user_func_array(Array, Array)
      #6 /usr/share/php/openmediavault/rpcservice.inc(158):
      OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      #7 /usr/share/openmediavault/engined/rpc/config.inc(224):
      OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      #8 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array,
      Array)
      #9 /usr/share/php/openmediavault/rpcservice.inc(125):
      call_user_func_array(Array, Array)
      #10 /usr/share/php/openmediavault/rpc.inc(79):
      OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      #11 /usr/sbin/omv-engined(501): OMVRpc::exec('Config', 'applyChangesBg',
      Array, Array, 1)
      #12 {main}
      Tom

      ----

      HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
      HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner
    • ahh, and some real bug:

      if someone creates a new share with nested subfolder like

      /test/folder

      where test doesnt exist it will be created but test with 700 permission. Sharing doesnt work cause of this
      Tom

      ----

      HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
      HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner
    • Weird. Traverse folder bit should not be necessarry if the folder below is shared directly. At least for smb...

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • tom_tav wrote:

      While fiddling around i found this:

      # more /etc/netatalk/afpd.conf
      - -tcp -nosavepassword -nozeroconf -uamlist uams_dhx.so,uams_dhx2.so

      I assume Kralizec writes one (empty) field into afpd.conf, without checking the content. So theres the "-" which seems not to hurt but which is useless

      ---

      Another question

      If i like to modify the Startup Params for afpd (not afpd.conf)... where is the best way to do this without getting overwritten by omv (also omv updates)?


      The line starting with '-' is the default configuration. See netatalk.sourceforge.net/2.0/htmldocs/afpd.conf.5.html.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • @Volker: mea culpa, du hast natürlich recht. Hatte das übersehen, schon lang kein afpd per Hand editiert ;)

      @David: Yes ... with this permission the share doesnt show up, setting the parent folder(s) to 777 for testing and - et voila - everything is here
      Tom

      ----

      HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
      HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner
    • verified it again with the new netatalk update

      Name, Volume, Path
      foldertest, internal, test/foldertest

      by omv created main folder:
      drwx------ 3 root root 31 Sep 7 00:04 test
      and created subfolder:
      drwxrwsr-x 2 root users 10 Sep 7 00:04 foldertest

      no afp share in os x

      changing main folder to:

      drwxrwxrwx 3 root root 31 Sep 7 00:04 test

      the share shows up
      Tom

      ----

      HP N54L, 6GB, 5disc Raid5, SSD Boot with OMV Stone Burner
      HP N54L, 16GB, 4disc Raid5, SSD Boot with OMV Stone Burner