Packages:afpd

Aus NAS-4220

Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Einsatzzweck des Paketes

Mit Hilfe von afpd können für Apple Mac vollständig nutzbare Freigaben erstellt und im Netzwerk freigegeben werden.

Apple User sollten eher von afp als von smb gebrauch machen, Erklärungen dazu findet man z.B. über die Google Suche.


Struktur und Inhalt des Paketes

Ordnerstruktur und Inhalt

  • afpd
    • bin // Unterordner von afpd mit den Anwendungen afpd und afppasswd zum erstellen der benötigten Passwort Datei
    • conf // Unterordner von afpd mit den benötigten Konfigurations und Passwort Dateien für apfd
      • uams // Unterordner von conf // enthält benötigte Dateien für den Zugriff auf afpd
    • init // Datei zum starten und einrichten der benötigten Laufzeitumgebung von afpd
    • lib // Unterordner von afpd mit den benötigten Librarys

Installation des Paketes

Das Paket kann wahlweise durch das Kopieren der Datei afpd.tgz in den Unterordner "/applications/new_software/" der Freigabe public mit anschließendem Neustart des NAS automatisch entpackt und gestartet werden, oder das Paket wird bereits auf dem eigenen Client entpackt und direkt in den Ordner "/applications/" der Freigabe public kopiert.

Für den Start von afpd bedarf es dann wieder eines Neustarts bzw. dem ausführen der "init" Datei via SSH/Telnet über ein Befehlszeilenprogramm.

Erklärung der Start und Konfigurationsdateien

init

Die für den Start von afpd verantwortliche init Datei sieht folgendermaßen aus:

Die Anweisungen habe ich jeweils auf Englisch hinter der # erklärt

#!/bin/sh
killall afpd


#Define Path to homedir

#PackageDIR=/mnt/ide1/public/applications/afpd
#changed by skara
PackageDIR=$(cat /usr/sausalito/codb/objects/1/Disk.rootdir 2> /dev/null)/public/applications/afpd
#Create needed filesystem and symlinks

ln -s $PackageDIR/lib/libdb-4.2.so /usr/lib/
ln -s $PackageDIR/lib/libcrypto.so.0.9.7 /usr/lib/

#Starting afpd
$PackageDIR/bin/afpd -F $PackageDIR/conf/afpd.conf

Afpd wird nach dem anlegen der benötigten Symbolischen Links zu den Librarys über den Befehl

$PackageDIR/bin/afpd -F $PackageDIR/conf/afpd.conf

mit der Parameter -F $PackageDIR/conf/afpd.conf gestartet.

Diese Parametererweiterung gibt afpd an welche afpd.conf er benutzen soll.

Achtet darauf, dass alle Angaben was /mnt/ide1/ in meinen Anleitungen betrifft, mit eurem NAS übereinstimmen und gegebenenfalls von euch angepasst werden müssen, ansonsten wird das Script nicht richtig funktionieren!!!


Weitere Parameter können unter

Netatalk Projekt Dokumentation zu afpd

nachgelesen werden.

afpd.conf

Die zentrale Konfigurationsdatei für afpd ist afpd.conf, in dieser können alle relevanten Parameter eingestellt werden.

Die eigentliche Konfiguration kommt ganz am Ende der Datei, der Anfang enthält die Erklärungen zu den Parametern, daher werde ich hier auch keinen weiteren externen Link zur Erklärung der Datei einstellen.

Hier die im Paket enthaltene afpd.conf Datei

#
# CONFIGURATION FOR AFPD
#
# Each line defines a virtual server that should be available.
# Empty lines and lines beginning with `#' are ignored.
# Options in this file will override both compiled-in defaults
# and command line options.
#
# Format:
#  - [options]	              to specify options for the default server
#  "Server name" [options]   to specify an additional server
#
# The following options are available:
#   Transport Protocols:
#     -[no]tcp       Make AFP-over-TCP [not] available
#     -[no]ddp       Make AFP over AppleTalk [not] available. if you
#                    have -proxy specified, specify -uamlist "" to 
#                    prevent ddp connections from working.
#
#     -transall      Make both available (default)
#
#   Transport Options:
#     -ipaddr <w.x.y.z>   Specifies the IP address the server should respond
#                         to (default is the first IP address of the system)
#                         This option also allows one machine to advertise
#                         TCP/IP for another machine.
#     -server_quantum <number> 
#                         Specifies the DSI server quantum. The minimum
#                         value is 1MB. The max value is 0xFFFFFFFF. If you 
#                         specify a value that is out of range, you'll get 
#                         the default value (currently the minimum).
#     -admingroup <groupname>
#                         Specifies the group of administrators who should all
#                         be seen as the superuser when they log in.  Default
#                         is disabled.
#     -ddpaddr x.y        Specifies the DDP address of the server. the 
#			  default is to auto-assign an address
#                         (0.0). this is only useful if you're running
#			  on a multihomed host.
#     -port <number>      Specifies the TCP port the server should respond
#                         to (default is 548)
#     -fqdn <name:port>   specify a fully-qualified domain name (+
#                         optional port). this gets discarded if the
#			  server can't resolve it. this is not honored
#                         by appleshare clients <= 3.8.3 (default: none)
#     -proxy              Run an AppleTalk proxy server for specified AFP/TCP
#                         server (if address/port aren't given, then
#			  first IP address of the system/548 will be used).
#                         if you don't want the proxy server to act as
#                         a ddp server as well, set -uamlist to an
#			  empty string.
#     -noslp              Don't register this server with the Service
#			  Location Protocol.
#
#
#   Authentication Methods:
#     -uampath <path>  Use this path to look for User Authentication Modules.
#		       (default: /develop/netatalk-2.0.3/build/etc/netatalk/uams)
#     -uamlist <a,b,c> Comma-separated list of UAMs. (default:
#		       uams_guest.so,uams_clrtxt.so,uams_dhx.so) 
#
#		       some commonly available UAMs:
#                      uams_guest.so: Allow guest logins
#
#		       uams_clrtxt.so: (uams_pam.so or uams_passwd.so)
#				      Allow logins with passwords
#				      transmitted in the clear. 
#
#		       uams_randnum.so: Allow Random Number and Two-Way
#				       Random Number exchange for
#				       authentication.
#
#		       uams_dhx.so: (uams_dhx_pam.so or uams_dhx_passwd.so)
#		                    Allow Diffie-Hellman eXchange
#				    (DHX) for authentication.
#
#   Password Options:
#     -[no]savepassword   [Don't] Allow clients to save password locally
#     -passwdfile <path>  Use this path to store Randnum
#			  passwords. (Default: /develop/netatalk-2.0.3/build/etc/netatalk/afppasswd. The only
#                         other useful value is ~/.passwd. See 'man afppasswd'
#                         for details.)
#     -passwdminlen <#>   minimum password length. may be ignored.
#     -[no]setpassword    [Don't] Allow clients to change their passwords.
#     -loginmaxfail <#>   maximum number of failed logins. this may be
#			  ignored if the uam can't handle it.
#
#   AppleVolumes files:
#     -defaultvol <path>  Specifies path to AppleVolumes.default file
#                         (default /develop/netatalk-2.0.3/build/etc/netatalk/AppleVolumes.default,
#                         same as -f on command line)
#     -systemvol <path>   Specifies path to AppleVolumes.system file
#                         (default /develop/netatalk-2.0.3/build/etc/netatalk/AppleVolumes.system,
#                         same as -s on command line)
#     -[no]uservolfirst   [Don't] read the user's ~/AppleVolumes or
#                         ~/.AppleVolumes before reading
#                         /develop/netatalk-2.0.3/build/etc/netatalk/AppleVolumes.default
#                         (same as -u on command line)
#     -[no]uservol        [Don't] Read the user's volume file
#
#
#   Miscellaneous:
#     -authprintdir <path> Specifies the path to be used (per server) to 
#			   store the files required to do CAP-style
#			   print authentication which papd will examine
#			   to determine if a print job should be allowed.
#			   These files are created at login and if they
#			   are to be properly removed, this directory
#			   probably needs to be umode 1777
#     -guestname "user"   Specifies the user name for the guest login
#                         (default "nobody", same as -g on command line)
#     -loginmesg "Message"  Client will display "Message" upon logging in
#                         (no default, same as -l "Message" on commandline)
#     -nodebug            Switch off debugging
#     -client_polling     With this switch enabled, afpd won't advertise
#                         that it is capable of server notifications, so that
#                         connected clients poll the server every 10 seconds
#                         to detect changes in opened server windows.
#                         Note: Depending on the number of simultaneously
#                         connected clients and the network's speed, this can
#                         lead to a significant higher load on your network!
#     -sleep   <number>   AFP 3.x wait number hours before disconnecting
#                         clients in sleep mode. Default 10 hours
#     -tickleval <number> Specify the tickle timeout interval (in seconds).
#                         Note, this defaults to 30 seconds, and really 
#                         shouldn't be changed.  If you want to control
#                         the server idle timeout, use the -timeout option.
#     -timeout <number>   Specify the number of tickles to send before
#                         timing out a connection.  The default is 4, therefore
#                         a connection will timeout in 2 minutes.
#     -icon               Use the platform-specific icon.
#     -[un]setuplog "<logtype> <loglevel> [<filename>]"
#                         Specify that the given loglevel should be applied
#                         to log messages of the given logtype and that 
#                         these messages should be logged to the given file.
#                         If the filename is ommited the loglevel applies to 
#                         messages passed to syslog.  
#                         Each logtype may have a loglevel applied to syslog 
#                         and a loglevel applied to a single file.  Latter
#                         -setuplog settings will override earlier ones of
#                         the same logtype (file or syslog).
#                         logtypes:  Default, Core, Logger, CNID, AFPDaemon
#                         loglevels: LOG_SEVERE, LOG_ERROR, LOG_WARN, LOG_NOTE,
#                                    LOG_INFO, LOG_DEBUG, LOG_DEBUG6, LOG_DEBUG7, 
#                                    LOG_DEBUG8, LOG_DEBUG9, LOG_MAXDEBUG
#
#                         for example:
#                    -setuplog "logger log_maxdebug /var/log/netatalk-logger.log"
#                    -setuplog "afpdaemon log_maxdebug /var/log/netatalk-afp.log"
#                    -unsetuplog "default level file" 
#                    -setuplog "default log_maxdebug"
#
#     -signature { user:<text> | host }
#                         Specify a server signature. This option is useful while
#                         running multiple independent instances of afpd on one 
#                         machine (eg. in clustered environments, to provide fault
#                         isolation etc.). "host" signature type allows afpd generating
#                         signature automatically (based on machine primary IP address).
#                         "user" signature type allows administrator to set up a signature
#                         string manually. Examples: three servers running on one machine:
#           first       -signature user:USERS
#           second      -signature user:USERS
#           third       -signature user:ADMINS
#                First two servers will act as one logical AFP service - if user logs in to 
#                first one and then  connects to second one, session will be automatically 
#                redirected to the first one. But if client connects to first and then to third, 
#                will be asked for password twice and will see  resources of both servers. 
#                Traditional method of signature generation causes two independent afpd instances
#                to have the same signature and thus cause clients to be redirected automatically
#                to server (s)he logged in first.
#     -k5service <service>
#     -k5realm <realm>
#		 These are required if the server supports Kerberos 5 authentication
#
#   Codepage Options:
#      -unixcodepage <CODEPAGE>     Specifies the servers unix codepage, e.g. "ISO-8859-15" or "UTF8".
#			            This is used to convert strings to/from the systems locale, e.g.
#                                   for authenthication. Defaults to LOCALE if your system supports it, 
#                                   otherwise ASCII will be used.
#
#      -maccodepage <CODEPAGE>      Specifies the mac clients codepage, e.g. "MAC_ROMAN".
#			            This is used to convert strings to the systems locale, e.g. 
#                                   for authenthication and SIGUSR2 messaging. This will also be
#                                   the default for volumes maccharset.
#
#   CNID related options:
#      -cnidserver ipaddress:port   Specifies the IP address and port of a cnid_metad server.
#

 
#		
# Some examples:
#
#	The simplest case is to not have an afpd.conf.
#
#	4 servers w/ names server1-3 and one w/ the hostname. servers
#       1-3 get routed to different ports with server 3 being bound 
#       specifically to address 192.168.1.3
#		-
#		server1 -port 12000
#		server2 -port 12001
#		server3 -port 12002 -ipaddr 192.168.1.3
#
#	a dedicated guest server, a user server, and a special
#	ddp-only server:
#		"Guest Volume" -uamlist uams_guest.so -loginmesg "Welcome guest!"
#		"User Volume" -uamlist uams_clrtxt.so -port 12000
#		"special" -notcp -defaultvol <path> -systemvol <path>
#
# default:
- -noddp -uamlist uams_randnum.so,uams_guest.so -guestname guest -savepassword -passwdminlen 4 -passwdfile /mnt/ide1/public/applications/afpd/conf/afppasswd -defaultvol /mnt/ide1/public/applications/afpd/conf/AppleVolumes.default -systemvol /mnt/ide1/public/applications/afpd/conf/AppleVolumes.system -uampath /mnt/ide1/public/applications/afpd/conf/uams/


Wichtig ist hier die Angabe der afppasswd Datei, da ansonsten keine korrekte Authentifizierung mit den später für den Zugriff eingerichteten Usern erfolgen kann.

afppasswd die zentrale User/Passwort Datei von afpd

In der Datei afppasswd sind alle User und Passwörter (kein Klartext) hinterlegt.

Die Datei wird mit dem Programm afppasswd aus dem Ordner bin initial angelegt und liest dabei die vorhande /etc/passwd des NAS aus und enthält somit automatisch die aktuell auf eurem NAS eingerichteten User. Die Passwörter werden dabei allerdings nicht übernommen und müssen für die zu verwendenen User manuell mit dem Programm afppasswd gesetzt werden.

Zu der Verwendung des Programmes afppasswd komme ich später!

Die im Paket enthaltene Datei enthält bereits einige Benutzer (keine Passwörter hinterlegt) wovon lediglich der Benutzer guest bereits genutzt werden könnte.

Dieser ist bereits in der afpd.conf als zentraler guest User hinterlegt und wird auch in der später erklärten AppleVolumes.default für die guest Freigabe verwendet, da für den guest Zugriff kein Passwort benötigt wird, hilft uns dies festzustellen ob das installierte afpd Paket bereits funktioniert!

Den Zugriff könnte man daher nach der Installation des Paketes unter Mac OS X direkt über Apfel + K -> afp://guest@eurenasip/guest testen.

AppleVolumes.default und AppleVolumes.system

In der Datei afpd.conf sind wir bereits über diese Einträge gestolpert, wirklich wichtig für die Definition unserer Freigaben und wer auf diese Zugreifen darf ist die Datei AppleVolumes.default

Die im Paket enthaltene Datei enthält die aktuell auf meinem NAS verwendeten Freigaben und sollte daher was die Freigaben und was evtl. den Mount Punkt angeht von euch angepasst werden.

Hier die AppleVolumes.default

/mnt/ide1/guest adouble:v2 allow:admin,guest cnidscheme:last
/mnt/ide1/public adouble:v2 allow:admin cnidscheme:last
/mnt/usb2/timemachine adouble:v2 allow:admin cnidscheme:last
/mnt/ide1/nas adouble:v2 allow:admin cnidscheme:last


die Freigabeordner müssen damit sie verwendet werden können vorher auf dem NAS erstellt werden!

Der unter dem Punkt afppasswd beschriebene Test mit der guest Freigabe wird daher nur funktionieren, wenn vor der Installation des Paketes dieser Ordner angelegt wurde!!


Die Erklärung zur AppleVolumes.default findet ihr hier:

Netatalk Projekt Dokumentation zu AppleVolumes.default


Hier die AppleVolumes.system an der ihr tunlichst nichts verändern solltet, es sei denn ihr wisst genau was ihr tut!!

# ($Id)
#
# Use at your own risk.  No guarantees express or implied.
#
# Try to use MacPerl script 'ICDumpSuffixMap' included in /usr/doc 
# to download file mapping list from your Internet Config Preference.
#
# inoue@ma.ns.musashi-tech.ac.jp.
#

# default translation -- note that CR <-> LF translation is done on all
# files of type TEXT (if crlf is set in volume's options).  
# The first line turns off translation for files of unknown type, 
# the third turns this translation on.
#.         "????"  "????"      Unix Binary                    Unix                      application/octet-stream
#.         "BINA"  "UNIX"      Unix Binary                    Unix                      application/octet-stream
#.         "TEXT"  "ttxt"      ASCII Text                     SimpleText                text/plain

.1st      "TEXT"  "ttxt"      Text Readme                    SimpleText                application/text
.669      "6669"  "SNPL"      669 MOD Music                  PlayerPro
.8med     "STrk"  "SCPL"      Amiga OctaMed music            SoundApp
.8svx     "8SVX"  "SCPL"      Amiga 8-bit sound              SoundApp
.a        "TEXT"  "ttxt"      Assembly Source                SimpleText
.aif      "AIFF"  "SCPL"      AIFF Sound                     SoundApp                  audio/x-aiff
.aifc     "AIFC"  "SCPL"      AIFF Sound Compressed          SoundApp                  audio/x-aiff
.aiff     "AIFF"  "SCPL"      AIFF Sound                     SoundApp                  audio/x-aiff
.al       "ALAW"  "SCPL"      ALAW Sound                     SoundApp
.ani      "ANIi"  "GKON"      Animated NeoChrome             GraphicConverter
.apd      "TEXT"  "ALD3"      Aldus Printer Description      Aldus PageMaker
.arc      "mArc"  "SITx"      PC ARChive                     StuffIt Expander
.arj      "BINA"  "DArj"      ARJ Archive                    DeArj
.arr      "ARR "  "GKON"      Amber ARR image                GraphicConverter
.art      "ART "  "GKON"      First Publisher                GraphicConverter
.asc      "TEXT"  "ttxt"      ASCII Text                     SimpleText                text/plain
.ascii    "TEXT"  "ttxt"      ASCII Text                     SimpleText                text/plain
.asf      "ASF_"  "Ms01"      Netshow Player                 Netshow Server            video/x-ms-asf
.asm      "TEXT"  "ttxt"      Assembly Source                SimpleText
.asx      "ASX_"  "Ms01"      Netshow Player                 Netshow Server            video/x-ms-asf
.au       "ULAW"  "TVOD"      Sun Sound                      QuickTime Player          audio/basic
.avi      "VfW "  "TVOD"      AVI Movie                      QuickTime Player          video/avi
.bar      "BARF"  "S691"      Unix BAR Archive               SunTar
.bas      "TEXT"  "ttxt"      BASIC Source                   SimpleText
.bat      "TEXT"  "ttxt"      MS-DOS Batch File              SimpleText
.bga      "BMPp"  "ogle"      OS/2 Bitmap                    PictureViewer
.bib      "TEXT"  "ttxt"      BibTex Bibliography            SimpleText
.bin      "SIT!"  "SITx"      MacBinary                      StuffIt Expander          application/macbinary
.binary   "BINA"  "hDmp"      Untyped Binary Data            HexEdit                   application/octet-stream
.bmp      "BMPp"  "ogle"      Windows Bitmap                 PictureViewer
.boo      "TEXT"  "ttxt"      BOO encoded                    SimpleText
.bst      "TEXT"  "ttxt"      BibTex Style                   SimpleText
.bw       "SGI "  "GKON"      SGI Image                      GraphicConverter
.c        "TEXT"  "CWIE"      C Source                       CodeWarrior
.cgm      "CGMm"  "GKON"      Computer Graphics Meta         GraphicConverter
.class    "Clss"  "CWIE"      Java Class File                CodeWarrior
.clp      "CLPp"  "GKON"      Windows Clipboard              GraphicConverter
.cmd      "TEXT"  "ttxt"      OS/2 Batch File                SimpleText
.com      "PCFA"  "SWIN"      MS-DOS Executable              SoftWindows
.cp       "TEXT"  "CWIE"      C++ Source                     CodeWarrior
.cpp      "TEXT"  "CWIE"      C++ Source                     CodeWarrior
.cpt      "PACT"  "SITx"      Compact Pro Archive            StuffIt Expander
.csv      "TEXT"  "XCEL"      Comma Separated Vars           Excel
.ct       "..CT"  "GKON"      Scitex-CT                      GraphicConverter
.cut      "Halo"  "GKON"      Dr Halo Image                  GraphicConverter
.cvs      "drw2"  "DAD2"      Canvas Drawing                 Canvas
.dbf      "COMP"  "FOX+"      DBase Document                 FoxBase+
.dcx      "DCXx"  "GKON"      Some PCX Images                GraphicConverter
.dif      "TEXT"  "XCEL"      Data Interchange Format        Excel
.diz      "TEXT"  "R*Ch"      BBS Descriptive Text           BBEdit
.dl       "DL  "  "AnVw"      DL Animation                   MacAnim Viewer
.dll      "PCFL"  "SWIN"      Windows DLL                    SoftWindows
.doc      "WDBN"  "MSWD"      Word Document                  Microsoft Word            application/msword
.dot      "sDBN"  "MSWD"      Word for Windows Template      Microsoft Word
.dvi      "ODVI"  "xdvi"      TeX DVI Document               xdvi                      application/x-dvi
.dwt      "TEXT"  "DmWr"      Dreamweaver Template           Dreamweaver
.dxf      "TEXT"  "SWVL"      AutoCAD 3D Data                Swivel Pro
.eps      "EPSF"  "vgrd"      Postscript                     LaserWriter 8             application/postscript
.epsf     "EPSF"  "vgrd"      Postscript                     LaserWriter 8             application/postscript
.etx      "TEXT"  "ezVu"      SEText                         Easy View                 text/x-setext
.evy      "EVYD"  "ENVY"      Envoy Document                 Envoy
.exe      "PCFA"  "SWIN"      MS-DOS Executable              SoftWindows
.faq      "TEXT"  "ttxt"      ASCII Text                     SimpleText                text/x-usenet-faq
.fit      "FITS"  "GKON"      Flexible Image Transport       GraphicConverter          image/x-fits
.flc      "FLI "  "TVOD"      FLIC Animation                 QuickTime Player
.fli      "FLI "  "TVOD"      FLI Animation                  QuickTime Player
.fm       "FMPR"  "FMPR"      FileMaker Pro Database         FileMaker Pro
.for      "TEXT"  "MPS "      Fortran Source                 MPW Shell
.fts      "FITS"  "GKON"      Flexible Image Transport       GraphicConverter
.gem      "GEM-"  "GKON"      GEM Metafile                   GraphicConverter
.gif      "GIFf"  "ogle"      GIF Picture                    PictureViewer             image/gif
.gl       "GL  "  "AnVw"      GL Animation                   MacAnim Viewer
.grp      "GRPp"  "GKON"      GRP Image                      GraphicConverter
.gz       "SIT!"  "SITx"      Gnu ZIP Archive                StuffIt Expander          application/x-gzip
.h        "TEXT"  "CWIE"      C Include File                 CodeWarrior
.hcom     "FSSD"  "SCPL"      SoundEdit Sound ex SOX         SoundApp
.hp       "TEXT"  "CWIE"      C Include File                 CodeWarrior
.hpgl     "HPGL"  "GKON"      HP GL/2                        GraphicConverter
.hpp      "TEXT"  "CWIE"      C Include File                 CodeWarrior
.hqx      "TEXT"  "SITx"      BinHex                         StuffIt Expander          application/mac-binhex40
.htm      "TEXT"  "MOSS"      HyperText                      Netscape Communicator     text/html
.html     "TEXT"  "MOSS"      HyperText                      Netscape Communicator     text/html
.i3       "TEXT"  "R*ch"      Modula 3 Interface             BBEdit
.ic1      "IMAG"  "GKON"      Atari Image                    GraphicConverter
.ic2      "IMAG"  "GKON"      Atari Image                    GraphicConverter
.ic3      "IMAG"  "GKON"      Atari Image                    GraphicConverter
.icn      "ICO "  "GKON"      Windows Icon                   GraphicConverter
.ico      "ICO "  "GKON"      Windows Icon                   GraphicConverter
.ief      "IEF "  "GKON"      IEF image                      GraphicConverter          image/ief
.iff      "ILBM"  "GKON"      Amiga IFF Image                GraphicConverter
.ilbm     "ILBM"  "GKON"      Amiga ILBM Image               GraphicConverter
.image    "dImg"  "ddsk"      Apple DiskCopy Image           Disk Copy
.img      "IMGg"  "GKON"      GEM bit image/XIMG             GraphicConverter
.ini      "TEXT"  "ttxt"      Windows INI File               SimpleText
.java     "TEXT"  "CWIE"      Java Source File               CodeWarrior
.jfif     "JPEG"  "ogle"      JFIF Image                     PictureViewer
.jpe      "JPEG"  "ogle"      JPEG Picture                   PictureViewer             image/jpeg
.jpeg     "JPEG"  "ogle"      JPEG Picture                   PictureViewer             image/jpeg
.jpg      "JPEG"  "ogle"      JPEG Picture                   PictureViewer             image/jpeg
.latex    "TEXT"  "OTEX"      Latex                          OzTex                     application/x-latex
.lbm      "ILBM"  "GKON"      Amiga IFF Image                GraphicConverter
.lha      "LHA "  "SITx"      LHArc Archive                  StuffIt Expander
.lzh      "LHA "  "SITx"      LHArc Archive                  StuffIt Expander
.m1a      "MPEG"  "TVOD"      MPEG-1 audiostream             MoviePlayer               audio/x-mpeg
.m1s      "MPEG"  "TVOD"      MPEG-1 systemstream            MoviePlayer
.m1v      "M1V "  "TVOD"      MPEG-1 IPB videostream         MoviePlayer               video/mpeg
.m2       "TEXT"  "R*ch"      Modula 2 Source                BBEdit
.m2v      "MPG2"  "MPG2"      MPEG-2 IPB videostream         MPEG2decoder
.m3       "TEXT"  "R*ch"      Modula 3 Source                BBEdit
.mac      "PICT"  "ogle"      PICT Picture                   PictureViewer             image/x-pict
.mak      "TEXT"  "R*ch"      Makefile                       BBEdit
.mcw      "WDBN"  "MSWD"      Mac Word Document              Microsoft Word
.me       "TEXT"  "ttxt"      Text Readme                    SimpleText
.med      "STrk"  "SCPL"      Amiga MED Sound                SoundApp
.mf       "TEXT"  "*MF*"      Metafont                       Metafont
.mid      "Midi"  "TVOD"      MIDI Music                     MoviePlayer
.midi     "Midi"  "TVOD"      MIDI Music                     MoviePlayer
.mif      "TEXT"  "Fram"      FrameMaker MIF                 FrameMaker                application/x-framemaker
.mime     "TEXT"  "SITx"      MIME Message                   StuffIt Expander          message/rfc822
.ml       "TEXT"  "R*ch"      ML Source                      BBEdit
.mod      "STrk"  "SCPL"      MOD Music                      SoundApp
.mol      "TEXT"  "RSML"      MDL Molfile                    RasMac
.moov     "MooV"  "TVOD"      QuickTime Movie                MoviePlayer               video/quicktime
.mov      "MooV"  "TVOD"      QuickTime Movie                MoviePlayer               video/quicktime
.mp2      "MPEG"  "TVOD"      MPEG-1 audiostream             MoviePlayer               audio/x-mpeg
.mp3      "MPG3"  "TVOD"      MPEG-3 audiostream             MoviePlayer               audio/x-mpeg
.mpa      "MPEG"  "TVOD"      MPEG-1 audiostream             MoviePlayer               audio/x-mpeg
.mpe      "MPEG"  "TVOD"      MPEG Movie of some sort        MoviePlayer               video/mpeg
.mpeg     "MPEG"  "TVOD"      MPEG Movie of some sort        MoviePlayer               video/mpeg
.mpg      "MPEG"  "TVOD"      MPEG Movie of some sort        MoviePlayer               video/mpeg
.msp      "MSPp"  "GKON"      Microsoft Paint                GraphicConverter
.mtm      "MTM "  "SNPL"      MultiMOD Music                 PlayerPro
.mw       "MW2D"  "MWII"      MacWrite Document              MacWrite II               application/macwriteii
.mwii     "MW2D"  "MWII"      MacWrite Document              MacWrite II               application/macwriteii
.neo      "NeoC"  "GKON"      Atari NeoChrome                GraphicConverter
.nfo      "TEXT"  "ttxt"      Info Text                      SimpleText                application/text
.nst      "STrk"  "SCPL"      MOD Music                      SoundApp
.obj      "PCFL"  "SWIN"      Object (DOS/Windows)           SoftWindows
.oda      "ODIF"  "ODA "      ODA Document                   MacODA XTND Translator    application/oda
.okt      "OKTA"  "SCPL"      Oktalyser MOD Music            SoundApp
.out      "BINA"  "hDmp"      Output File                    HexEdit
.ovl      "PCFL"  "SWIN"      Overlay (DOS/Windows)          SoftWindows
.p        "TEXT"  "CWIE"      Pascal Source                  CodeWarrior
.pac      "STAD"  "GKON"      Atari STAD Image               GraphicConverter
.pas      "TEXT"  "CWIE"      Pascal Source                  CodeWarrior
.pbm      "PPGM"  "GKON"      Portable Bitmap                GraphicConverter          image/x-portable-bitmap
.pc1      "Dega"  "GKON"      Atari Degas Image              GraphicConverter
.pc2      "Dega"  "GKON"      Atari Degas Image              GraphicConverter
.pc3      "Dega"  "GKON"      Atari Degas Image              GraphicConverter
.pcs      "PICS"  "GKON"      Animated PICTs                 GraphicConverter
.pct      "PICT"  "ogle"      PICT Picture                   PictureViewer             image/x-pict
.pcx      "PCXx"  "GKON"      PC PaintBrush                  GraphicConverter
.pdb      "TEXT"  "RSML"      Brookhaven PDB file            RasMac
.pdf      "PDF "  "CARO"      Portable Document Format       Acrobat Reader            application/pdf
.pdx      "TEXT"  "ALD5"      Printer Description            PageMaker
.pf       "CSIT"  "SITx"      Private File                   StuffIt Expander 
.pgm      "PPGM"  "GKON"      Portable Graymap               GraphicConverter          image/x-portable-graymap
.pi1      "Dega"  "GKON"      Atari Degas Image              GraphicConverter
.pi2      "Dega"  "GKON"      Atari Degas Image              GraphicConverter
.pi3      "Dega"  "GKON"      Atari Degas Image              GraphicConverter
.pic      "PICT"  "ogle"      PICT Picture                   PictureViewer             image/x-pict
.pict     "PICT"  "ogle"      PICT Picture                   PictureViewer             image/x-macpict
.pit      "PIT "  "SITx"      PackIt Archive                 StuffIt Expander
.pkg      "HBSF"  "SITx"      AppleLink Package              StuffIt Expander
.pl       "TEXT"  "McPL"      Perl Source                    MacPerl
.plt      "HPGL"  "GKON"      HP GL/2                        GraphicConverter
.pm       "PMpm"  "GKON"      Bitmap from xv                 GraphicConverter
.pm3      "ALB3"  "ALD3"      PageMaker 3 Document           PageMaker
.pm4      "ALB4"  "ALD4"      PageMaker 4 Document           PageMaker
.pm5      "ALB5"  "ALD5"      PageMaker 5 Document           PageMaker
.png      "PNG "  "ogle"      Portable Network Graphic       PictureViewer
.pntg     "PNTG"  "ogle"      Macintosh Painting             PictureViewer
.ppd      "TEXT"  "ALD5"      Printer Description            PageMaker
.ppm      "PPGM"  "GKON"      Portable Pixmap                GraphicConverter          image/x-portable-pixmap
.prn      "TEXT"  "R*ch"      Printer Output File            BBEdit
.ps       "TEXT"  "vgrd"      PostScript                     LaserWriter 8             application/postscript
.psd      "8BPS"  "8BIM"      PhotoShop Document             Photoshop
.pt4      "ALT4"  "ALD4"      PageMaker 4 Template           PageMaker
.pt5      "ALT5"  "ALD5"      PageMaker 5 Template           PageMaker
.pxr      "PXR "  "8BIM"      Pixar Image                    Photoshop
.qdv      "QDVf"  "GKON"      QDV image                      GraphicConverter
.qt       "MooV"  "TVOD"      QuickTime Movie                MoviePlayer               video/quicktime
.qxd      "XDOC"  "XPR3"      QuarkXpress Document           QuarkXpress
.qxt      "XTMP"  "XPR3"      QuarkXpress Template           QuarkXpress
.raw      "BINA"  "GKON"      Raw Image                      GraphicConverter
.readme   "TEXT"  "ttxt"      Text Readme                    SimpleText                application/text
.rgb      "SGI "  "GKON"      SGI Image                      GraphicConverter          image/x-rgb
.rgba     "SGI "  "GKON"      SGI Image                      GraphicConverter          image/x-rgb
.rib      "TEXT"  "RINI"      Renderman 3D Data              Renderman
.rif      "RIFF"  "GKON"      RIFF Graphic                   GraphicConverter
.rle      "RLE "  "GKON"      RLE image                      GraphicConverter
.rme      "TEXT"  "ttxt"      Text Readme                    SimpleText
.rpl      "FRL!"  "REP!"      Replica Document               Replica
.rsc      "rsrc"  "RSED"      Resource File                  ResEdit
.rsrc     "rsrc"  "RSED"      Resource File                  ResEdit
.rtf      "TEXT"  "MSWD"      Rich Text Format               Microsoft Word            application/rtf
.rtx      "TEXT"  "R*ch"      Rich Text                      BBEdit                    text/richtext
.s3m      "S3M "  "SNPL"      ScreamTracker 3 MOD            PlayerPro
.scc      "MSX "  "GKON"      MSX pitcure                    GraphicConverter
.scg      "RIX3"  "GKON"      ColoRIX                        GraphicConverter
.sci      "RIX3"  "GKON"      ColoRIX                        GraphicConverter
.scp      "RIX3"  "GKON"      ColoRIX                        GraphicConverter
.scr      "RIX3"  "GKON"      ColoRIX                        GraphicConverter
.scu      "RIX3"  "GKON"      ColoRIX                        GraphicConverter
.sea      "APPL"  "????"      Self-Extracting Archive        Self Extracting Archive
.sf       "IRCM"  "SDHK"      IRCAM Sound                    SoundHack
.sgi      ".SGI"  "ogle"      SGI Image                      PictureViewer
.sha      "TEXT"  "UnSh"      Unix Shell Archive             UnShar                    application/x-shar
.shar     "TEXT"  "UnSh"      Unix Shell Archive             UnShar                    application/x-shar
.shp      "SHPp"  "GKON"      Printmaster Icon Library       GraphicConverter
.sit      "SIT!"  "SITx"      StuffIt 1.5.1 Archive          StuffIt Expander          application/x-stuffit
.sithqx   "TEXT"  "SITx"      BinHexed StuffIt Archive       StuffIt Expander          application/mac-binhex40
.six      "SIXE"  "GKON"      SIXEL image                    GraphicConverter
.slk      "TEXT"  "XCEL"      SYLK Spreadsheet               Excel
.snd      "BINA"  "SCPL"      Sound of various types         SoundApp
.spc      "Spec"  "GKON"      Atari Spectrum 512             GraphicConverter
.sr       "SUNn"  "GKON"      Sun Raster Image               GraphicConverter
.sty      "TEXT"  "*TEX"      TeX Style                      Textures
.sun      "SUNn"  "GKON"      Sun Raster Image               GraphicConverter
.sup      "SCRN"  "GKON"      StartupScreen                  GraphicConverter
.svx      "8SVX"  "SCPL"      Amiga IFF Sound                SoundApp
.syk      "TEXT"  "XCEL"      SYLK Spreadsheet               Excel
.sylk     "TEXT"  "XCEL"      SYLK Spreadsheet               Excel
.tar      "TARF"  "SITx"      Unix Tape ARchive              StuffIt Expander          application/x-tar
.targa    "TPIC"  "GKON"      Truevision Image               GraphicConverter
.taz      "ZIVU"  "SITx"      Compressed Tape ARchive        StuffIt Expander          application/x-compress
.tex      "TEXT"  "OTEX"      TeX Document                   OzTeX                     application/x-tex
.texi     "TEXT"  "OTEX"      TeX Document                   OzTeX
.texinfo  "TEXT"  "OTEX"      TeX Document                   OzTeX                     application/x-texinfo
.text     "TEXT"  "ttxt"      ASCII Text                     SimpleText                text/plain
.tga      "TPIC"  "GKON"      Truevision Image               GraphicConverter
.tgz      "Gzip"  "SITx"      Gnu ZIPed Tape ARchive         StuffIt Expander          application/x-gzip
.tif      "TIFF"  "ogle"      TIFF Picture                   PictureViewer             image/tiff
.tiff     "TIFF"  "ogle"      TIFF Picture                   PictureViewer             image/tiff
.tny      "TINY"  "GKON"      Atari TINY Bitmap              GraphicConverter
.tsv      "TEXT"  "XCEL"      Tab Separated Values           Excel                     text/tab-separated-values
.tx8      "TEXT"  "ttxt"      8-bit ASCII Text               SimpleText
.txt      "TEXT"  "ttxt"      ASCII Text                     SimpleText                text/plain
.ul       "ULAW"  "TVOD"      Mu-Law Sound                   MoviePlayer               audio/basic
.url      "AURL"  "Arch"      URL Bookmark                   Anarchie                  message/external-body
.uu       "TEXT"  "SITx"      UUEncode                       StuffIt Expander
.uue      "TEXT"  "SITx"      UUEncode                       StuffIt Expander
.vff      "VFFf"  "GKON"      DESR VFF Greyscale Image       GraphicConverter
.vga      "BMPp"  "ogle"      OS/2 Bitmap                    PictureViewer
.voc      "VOC "  "SCPL"      VOC Sound                      SoundApp
.w51      ".WP5"  "WPC2"      WordPerfect PC 5.1 Doc         WordPerfect               application/wordperfect5.1
.wav      "WAVE"  "TVOD"      Windows WAV Sound              MoviePlayer               audio/x-wav
.wk1      "XLBN"  "XCEL"      Lotus Spreadsheet r2.1         Excel
.wks      "XLBN"  "XCEL"      Lotus Spreadsheet r1.x         Excel
.wmf      "WMF "  "GKON"      Windows Metafile               GraphicConverter
.wp       ".WP5"  "WPC2"      WordPerfect PC 5.1 Doc         WordPerfect               application/wordperfect5.1
.wp4      ".WP4"  "WPC2"      WordPerfect PC 4.2 Doc         WordPerfect
.wp5      ".WP5"  "WPC2"      WordPerfect PC 5.x Doc         WordPerfect               application/wordperfect5.1
.wp6      ".WP6"  "WPC2"      WordPerfect PC 6.x Doc         WordPerfect
.wpg      "WPGf"  "GKON"      WordPerfect Graphic            GraphicConverter
.wpm      "WPD1"  "WPC2"      WordPerfect Mac                WordPerfect
.wri      "WDBN"  "MSWD"      MS Write/Windows               Microsoft Word
.wve      "BINA"  "SCPL"      PSION sound                    SoundApp
.x10      "XWDd"  "GKON"      X-Windows Dump                 GraphicConverter          image/x-xwd
.x11      "XWDd"  "GKON"      X-Windows Dump                 GraphicConverter          image/x-xwd
.xbm      "XBM "  "GKON"      X-Windows Bitmap               GraphicConverter          image/x-xbm
.xl       "XLS "  "XCEL"      Excel Spreadsheet              Excel
.xlc      "XLC "  "XCEL"      Excel Chart                    Excel
.xlm      "XLM "  "XCEL"      Excel Macro                    Excel
.xls      "XLS "  "XCEL"      Excel Spreadsheet              Excel
.xlw      "XLW "  "XCEL"      Excel Workspace                Excel
.xm       "XM  "  "SNPL"      FastTracker MOD Music          PlayerPro
.xpm      "XPM "  "GKON"      X-Windows Pixmap               GraphicConverter          image/x-xpm
.xwd      "XWDd"  "GKON"      X-Windows Dump                 GraphicConverter          image/x-xwd
.Z        "ZIVU"  "SITx"      Unix Compress Archive          StuffIt Expander          application/x-compress
.zip      "ZIP "  "SITx"      PC ZIP Archive                 StuffIt Expander          application/zip
.zoo      "Zoo "  "Booz"      Zoo Archive                    MacBooz

# Last Updated Jan 2, 2002
# Use at your own risk.  Take care !
#
# I'd like to dedicate this as follows code to Miss.Tamaki Imazu
#
# Kazuhiko Okudaira the Nursery Teacher
# kokudaira@hotmail.com

.bld  "BLD "  "GKON"  BLD                            GraphicConverter
.bum  ".bMp"  "GKON"  QuickTime Importer(QuickDraw)  GraphicConverter
.cel  "CEL "  "GKON"  KISS CEL                       GraphicConverter
.cur  "CUR "  "GKON"  Windows Cursor                 GraphicConverter
.cwj  "CWSS"  "cwkj"  ClarisWorks Document           ClarisWorks 4.0
.dat  "TCLl"  "GKON"  TCL image                      GraphicConverter
.hr   "TR80"  "GKON"  TSR-80 HR                      GraphicConverter
.iss  "ISS "  "GKON"  ISS                            GraphicConverter
.jif  "JIFf"  "GKON"  JIF99a                         GraphicConverter
.lwf  "lwfF"  "GKON"  LuraWave(LWF)                  GraphicConverter
.mbm  "MBM "  "GKON"  PSION 5(MBM)                   GraphicConverter
.ngg  "NGGC"  "GKON"  Mobile Phone(Nokia)Format      GraphicConverter
.nol  "NOL "  "GKON"  Mobile Phone(Nokia)Format      GraphicConverter
.pal  "8BCT"  "8BIM"  Color Table                    GraphicConverter
.pgc  "PGCF"  "GKON"  PGC/PGF  Atari Portfolio PCG   GraphicConverter
.pics "PICS"  "GKON"  PICS-PICT Sequence             GraphicConverter
.swf  "SWFL"  "SWF2"  Flash                          Macromedia Flash
.vpb  "VPB "  "GKON"  VPB QUANTEL                    GraphicConverter
.wbmp "WBMP"  "GKON"  WBMP                           GraphicConverter
.x-face  "TEXT"  "GKON"  X-Face                      GraphicConverter

# Nov 29, 2002
.fla  "SPA "  "MFL2"  Flash source                   Macromedia Flash

Anlegen von Usern über das Programm afppasswd

Deckt sich der in der AppleVolumes.default festgelegte Mount Pfad was /mnt/ide1/ angeht mit dem euren und habt ihr die Freigabeordner vorher bereits erfolgreich erstellt, sollte nach dem Neustart des NAS der Zugriff auf die Freigabe guest über den User guest wie erwähnt bereits funktionieren.

Da wir aber mehr als nur über den anonymen User guest auf unser NAS zugreifen wollen müssen wir die User anlegen, die in der AppleVolumes.default für den allow: Zugriff hinterlegt worden sind.

Das erstellen und pflegen der Datei afppasswd im Ordner conf geschieht über das Programm afppasswd im Ordner bin.

Um das Programm verwenden zu können, benötigen wir Terminal Zugriff über SSH oder Telnet auf das NAS. (Auf das wie gehe ich hier nicht ein)

Haben wir uns erfolgreich als root angemeldet, gelangen wir mit "cd /euermntpfad/public/applications/afpd/bin" (ohne die " ") zur Anwendung afppasswd, von hier aus werden wir mit den weiteren Terminal Befehlen fortfahren.

Folgende Optionen besitzt die Anwendung afppasswd:

Usage: afppasswd [-acf] [-u minuid] [-p path] [username]
  -a        add a new user
  -c        create and initialize password file or specific user
  -f        force an action
  -u uid    minimum uid to use, defaults to 100
  -p path   path to afppasswd file

als erstes sollten wir das alte afppasswd Passwort File im Ordner conf löschen und dieses anschließend mit dem Parameter -c wieder initial erstellen lassen. Hier wird die lokale /etc/passwd ausgelesen und alle vorhandenen User ohne deren Passwörter übernommen.

Folgendes ist für zum löschen und erneutem anlegen der Datei mit anschließendem editieren eines vorhandenen Benutzers notwendig

  1. Löschen der alten afppasswd Passwort Datei im Ordner conf
    1. rm ../conf/afppasswd
  2. Initiales anlegen der afppasswed Passwort Datei mit Hilfe von afppasswd "-c" unter Angabe des Pfades zur neuen afppasswd "-p"
    1. ./afppasswd -c -p ../conf/afppasswd
  3. Abschließend können wir den nun in der afppasswd vorhandenen Usern oder einem neu zu erstellenden User ein eigenes Passwort geben dies geschieht mit "-a" die Option der Pfadangabe zur afppasswd Passwort Datei dabei nicht vergessen "-p"
    1. ./afppasswd -a -p ../conf/afppasswd eueruser

Nach erfolgreicher Eingabe eines Passwortes sollte eine ähnliche Ausgabe erscheinen:

eldrik-nas> ./afppasswd -a -p ../conf/afppasswd admin
Enter NEW AFP password: 
Enter NEW AFP password again: 
afppasswd: updated password.

Sind alle benötigten User mit einem Passwort versehen und für das allow: in der AppleVolumes.default eingetragen müsst ihr abschließend das NAS einmal Rebooten oder über den Befehl ../init die init Datei ausführen, diese sorgt dann für das durchstarten des Dienstes afpd.

Et voià ihr besitzt nun eine weitere Möglichkeit des Zugriffs auf euer IB-NAS-4220 :-)

Optional: Verwendung von Avahi zur Bekanntgabe der afpd Freigaben im Netzwerk

Im Zusammenhang mit Apple und afpd kann ich nur dazu raten, Avahi mit ins Spiel zu bringen, ab Mac OS X Leopard werden Fileserverdienste/freigaben direkt unter "Freigabe" im Finder angezeigt.

Mit Avahi entfällt somit die Notwendigkeit Laufwerke über Apfel + K zu verbinden noch muss man die genauen Verbindungsdaten (Server IP, verwendetes Protokoll oder Freigabename) für den Zugriff kennen.

Eine Dokumentation sowie ein Paket für Avahi auf dem NAS gibt es hier:

Avahi fürs IB-NAS-4220

Persönliche Werkzeuge