Loading ...
Sorry, an error occurred while loading the content.

24324Re: [nslu2-linux] Re: Slug as Time Machine

Expand Messages
  • M.J. Johnson
    Feb 25, 2010
    • 0 Attachment
         One more piece of information: although I can't recall explicitly doing so, it appears a guest account already exists on the Slug.  From /etc/passwd:

      guest:xqnMpE/plEnFs:501:501::/home/user/guest:/dev/null


      On Thu, Feb 25, 2010 at 4:02 PM, M.J. Johnson <threeeyedtoad@...> wrote:
         Okay - looking through /var/log/messages, I found these entries when the Slug starts up:

      Feb 25 18:39:14 (none) daemon.info afpd[450]: Registering CNID module [last]
      Feb 25 18:39:14 (none) daemon.info afpd[450]: Registering CNID module [cdb]
      Feb 25 18:39:14 (none) daemon.info afpd[450]: Registering CNID module [dbd]
      Feb 25 18:39:15 (none) daemon.debug afpd[450]: Loading ConfigFile
      Feb 25 18:39:17 (none) daemon.err afpd[450]: main: atp_open: Address family not supported by protocol
      Feb 25 18:39:18 (none) daemon.info afpd[450]: ASIP started on 192.168.0.178:548(5) (2.0.5)
      Feb 25 18:39:18 (none) daemon.debug afpd[450]: uam: loading (/opt/etc/netatalk/uams/uams_guest.so)
      Feb 25 18:39:18 (none) daemon.info afpd[450]: uam: uams_guest.so loaded
      Feb 25 18:39:18 (none) daemon.debug afpd[450]: Locale charset 'ANSI_X3.4-1968' unsupported, using ASCII instead
      Feb 25 18:39:18 (none) daemon.info afpd[450]: uam: "No User Authent" available
      Feb 25 18:39:18 (none) daemon.debug afpd[450]: Finished parsing Config File

         Then, when I try and connect over afp from my OS X client, I get these entries:

      Feb 25 18:46:23 (none) daemon.info afpd[553]: ASIP session:548(5) from 192.168.0.183:64201(7)
      Feb 25 18:46:23 (none) daemon.info afpd[450]: server_child[1] 553 done
      Feb 25 18:46:27 (none) daemon.info afpd[554]: ASIP session:548(5) from 192.168.0.183:64202(7)
      Feb 25 18:46:27 (none) daemon.info afpd[554]: login noauth
      Feb 25 18:46:27 (none) daemon.info afpd[554]: login nobody (uid 99, gid 99) AFP3.1
      Feb 25 18:46:28 (none) daemon.info afpd[554]: afp_getsrvrparms(/share/hdd/data/HDD_1_1_1/TimeMachine): stat: Permission denied
      Feb 25 18:46:28 (none) daemon.info afpd[554]: afp_getsrvrparms(/share/hdd/data/HDD_1_1_1/TimeMachine): stat: Permission denied
      Feb 25 18:46:33 (none) daemon.info afpd[554]: logout nobody
      Feb 25 18:46:33 (none) daemon.info afpd[554]: 0.14KB read, 0.12KB written
      Feb 25 18:46:33 (none) daemon.info afpd[450]: server_child[1] 554 done

         So, it looks like I'm getting permission errors when I attempt to login as guest, indicating either (1.) permissions are not setup for the TimeMachine share, or (2.) the permissions are not inclusive enough.  However, I have no idea if the permissions are native to afpd, to the system, or something else entirely.

         I realize I'm pretty far down the rabbit hole on this one, but I appreciate any ideas the community might have.

         Thanks again.



      On Thu, Feb 25, 2010 at 3:25 PM, M.J. Johnson <threeeyedtoad@...> wrote:
         Accordig to http://netatalk.sourceforge.net/2.0/htmldocs/afpd.conf.5.html (under "Logging Options"):

      "Extended logging capabilities are only available if Netatalk was built using --with-logfile. As of Netatalk 2.0, the default is --without-logfile since the logger code is partially broken and needs a complete rewrite (the -setuplog option might not work as expected). If Netatalk was built without logger support then the daemons log to syslog."

         I checked in /var/log and don't see any netatalk*.log file, so I'm assuming netatalk has been compiled without logging enabled.

         Here's where I show my lack of *nix skillz: where would I find the syslog on an unslung system?

         - M.J.


      On Wed, Feb 17, 2010 at 1:28 AM, marbordom <marbordom@...> wrote:
       



      I just tried this on my nslu2 running debian lenny

      1) It does not work when using
      AppleVolumes.default: /home/user "user"
      and the default afpd.conf
      2) It does work without authentication using
      afpd.conf: "Time Capsule" -uamlist uams_guest.so
      AppleVolumes.default: /mnt/directory "TimeMachine"

      In case 1) I get errno -1069 in the terminal or
      when using finder: Volume user could not be mounted
      Under 2) I used finder and connected via
      afp://ip address/TimeMachine

      as guest - and there it was !

      Hmm, what are the log files in your case
      /var/log/syslog has some info in my case.

      Otherwise it should not be too hard to compile under debian but the problem must have a simpler solution than that.

      Marc



      --- In nslu2-linux@yahoogroups.com, "M.J. Johnson" <threeeyedtoad@...> wrote:
      >
      > Well, after some additional attempts, it looks like I'm unable to even
      > connect using afp from my Mac OS X machine. I followed the instructions:
      >
      > Finder-> Go -> Connect to server
      > afp://192.168.0.178/TimeMachine
      >
      > I was challenged with:
      >
      > 'Enter your user name and password to access the file server "Time
      > Capsule".'
      >
      > I attempted to login as guest, since that was how I configured afpd.conf,
      > and received the error:
      >
      > 'Connection failed - There was an error connecting to the server. Check the
      > server name or IP address and try again.'
      >
      > The only configurations I made were to /opt/etc/netatalk/afpd.conf to
      > allow guest access:
      >
      > "Time Capsule" -uamlist uams_guest.so
      >
      > and to /opt/etc/netatalk/AppleVolumes.default
      >
      > /share/hdd/data/HDD_1_1_1/TimeMachine "TimeMachine"
      >
      > pulse_and_saw commented that he had to compile from source on Debian
      > Lenny to get authentication working against Mac OS X. I'm not sure if I'm
      > up for that (having never done so for any packages running on my Unslung
      > 6.10 NSLU), so I'll ask the two questions:
      >
      > 1. Is there any knowledge among this community what might be causing
      > authentication to fail against Mac OS X 10.5.8 (which is what I'm running)?
      >
      > 2. Are there how-tos available that might assist me if I decide I'm
      > willing to compile netatalk from source on my Unslung box?
      >
      > Thanks in advance,
      >
      > - M.J.




    • Show all 12 messages in this topic