afpd (8) Linux Manual Page
afpd – AppleTalk Filing Protocol daemon
Synopsis
-
afpd[-duptDTvI] [-fdefaultvolumes] [-s systemvolumes] [-n nbpname] [-c maxconnections] [-g guest] [-P pidfile] [-S port] [-L message] [-F config] [-U uamsv] [-m umask]
Description
afpd
Options
-d
- Specifies that the daemon should not fork. If netatalk has been configured with –enable-debug1, a trace of all AFP commands will be written to stdout.
-p
- Prevents clients from saving their passwords. (Equivalent to –
nosavepasswdin afpd.conf.)
-t
- Allows clients to change their passwords. (Equivalent to
-setpasswdin afpd.conf.)
-D
- Use DDP (AppleTalk) as transport protocol. (Equivalent to
-ddpin afpd.cond.)
-T
- Use TCP/IP as transport protocol. (Equivalent to
-tcpin afpd.conf.)
-v
- Print version information and exit.
-I
- Use a platform specific icon. (Equivalent to
-iconin afpd.conf.)
-f defaultvolumes
- Specifies that defaultvolumes should be read for a list of default volumes to offer, instead of /etc/atalk//AppleVolumes.default.
-s systemvolumes
- Specifies that systemvolumes should be read for a list of volume that all users will be offered, instead of /etc/atalk//AppleVolumes.system.
-u
- Read the user’s AppleVolumes file first. This option causes volume names in the user’s AppleVolumes file to override volume names in the system’s AppleVolumes file. The default is to read the system AppleVolumes file first. Note that this option doesn’t effect the precendence of filename extension mappings: the user’s AppleVolumes file always has precedence.
-n nbpname
- Specifies that nbpname should be used for NBP registration, instead of the first component of the hostname in the local zone.
-c maxconnections
- Specifies the maximum number of connections to allow for this
afpd. The default is 20.
-g guest
- Specifies the name of the guest account. The default is ‘nobody‘.
-P pidfile
- Specifies the file in which
afpdstores its process id.
-S port
- Specifies the port to register with when doing AFPoverTCP. Defaults to 548. (Equivalent to
-portin afpd.conf.)
-L message
- Specifies the login message that will be sent to clients. (Equivalent to
-loginmsgin afpd.conf.)
-F configfile
- Specifies the configuration file to use. (Defaults to /etc/atalk//netatalk/afpd.conf.)
-U uams
- Comma-separated list of UAMs to use for the authentication process. (Equivalent to
-uamlistin afpd.conf.)
-m umask
- Use this umask for the creation of folders in Netatalk.
Signals
Signals that are sent to the main afpd process are propagated to the children, so all will be affected.
SIGHUP
- Sending a
SIGHUPto afpd will cause it to reload its configuration files.
SIGUSR1
- The
afpdprocess will send the message "The server is going down for maintenance." to the client and shut itself down in 5 minutes. New connections are not allowed. If this is sent to a child afpd, the other children are not affected. However, the main process will still exit, disabling all new connections.
SIGUSR2
- The
afpdprocess will look in the message directory configured at build time for a file named message.pid. For each one found, a the contents will be sent as a message to the associated AFP client. The file is removed after the message is sent. This should only be sent to a childafpd. Warning: If the –with-message-dir option was not used, this will kill theafpdprocessTo shut down a user’s
afpdprocess it is recommended thatSIGKILL (-9)NOT be used, except as a last resort, as this may leave the CNID database in an inconsistent state. The safe way to terminate anafpdis to send it aSIGTERM (-15)signal and wait for it to die on its own.
Files
/etc/atalk//AppleVolumes.default
- list of default volumes to mount
/etc/atalk//AppleVolumes.system
- list of volumes to offer all users
~/AppleVolumes
- user’s list of volumes to mount
/etc/atalk//netatalk/msg/message.pid
- contains messages to be sent to users.
Bugs
See Also
hosts_access(5), afpd.conf(5), AppleVolumes.default(5), AppleVolumes.system(5).
