AFPPASSWD(1)
β¨ AFPPASSWD(1) β¨ β Netatalk AFP Fileserver Manual π
π Name
Okay so bestie, afppasswd is the AFP password maintenance utility π
It's giving "keep your credentials in check" energy. π¦
πΈ Synopsis
afppasswd [-cfnr] [-a username] [-p path] [-u minimum uid] [-w password
string]
afppasswd [-r]
π Description
Okay, so afppasswd is the one that creates and maintains the credential file for the SRP ("Secure Remote Password") UAM π And if you add -r, it also handles the legacy afppasswd file used by the "Randnum exchange" and "2-Way Randnum exchange" UAMs. Iykyk π
By default, afppasswd runs in SRP mode and stores per-user salts and verifiers in the SRP verifier file. The default is afppasswd.srp under the netatalk configuration directory, but you can change it with the "srp passwd file" option in afp.conf(5) β¨ Pass -r to work on the legacy Randnum file instead (default afppasswd under the netatalk configuration directory, or whatever you set with the "passwd file" option) π§
There are two invocation styles, and they are literally giving two different vibes:
- π As root,
afppasswdmanages credentials for any system user. You name the user with-a username, which both adds new entries and updates existing ones. Or you can initialize the whole file at once with-cπ - π«Ά As a regular user,
afppasswdtakes no positional arguments and changes your own AFP password. It's SRP by default, and the legacy RandNum UAM with-rπ
The named user has to already exist as a local system user, no cap π§’
NOTE: The legacy Randnum and 2-Way Randnum UAMs only provide weak password protection and are discouraged π They should only be enabled to support very old AFP clients that can't use SRP, DHX, or DHX2. Randnum requires a file namedafppasswd.keyat the same path as theafppasswdfile. That key file holds a hex-encoded 8-byte DES key that Randnum uses to encrypt the stored password. Runningafppasswd -r -ccreates this key file if it's missing and validates an existing one. Randnum password updates refuse to proceed unless the key file is present and valid. The Randnum UAM logs a warning at startup when the key file is missing or invalid, but authentication and password changes still fail until it's fixed. π
The key file must contain exactly 16 hexadecimal characters, such as 0123456789ABCDEF, with an optional trailing newline. Generate a fresh random key for each server instead of reusing this example value πβ¨
π Examples
Administrator initializing the SRP verifier file and adding a new user:
example% sudo afppasswd -c
example% sudo afppasswd -a newuser
Enter NEW AFP password: (hidden)
Enter NEW AFP password again: (hidden)
afppasswd: updated SRP verifier.
Administrator updating an existing user's SRP password:
example% sudo afppasswd -a someuser
Local user changing their own SRP password:
example% afppasswd
Administrator managing the legacy Randnum file at a non-default path:
example% sudo afppasswd -r -c -p /usr/local/etc/afppasswd
example% sudo afppasswd -r -a olduser -p /usr/local/etc/afppasswd
Enter NEW AFP password: (hidden)
Enter NEW AFP password again: (hidden)
afppasswd: updated Randnum password.
π Options
-a usernameβ Add or update the named user. This is required when an admin is operating on a specific user. Non-root invocations always work on the calling user, so they don't accept this one π ββοΈ-cβ Create and initialize the password/verifier file. Existing entries get filled in as placeholders for every local system user with a uid at or above the-uthreshold. You still need to set passwords individually with-aπ With-r, it also creates or validates the companionafppasswd.keyfile for the Randnum UAM.-fβ Force it! With-c, this lets you overwrite an existing password/verifier file π₯-rβ Work on the legacy Randnumafppasswdfile instead of the SRP verifier file. This changes which file gets read or created, and which default path gets used when-pisn't given π¦-p pathβ Override the default path of the password/verifier file. The default is the SRP verifier file in SRP mode and the Randnumafppasswdfile with-r. Both defaults can be configured globally in afp.conf(5) via "srp passwd file" and "passwd file" respectively πΈ-nβ If cracklib support is built into netatalk, this turns off password strength validation for this run π-u minimum uidβ The minimum user id (uid) thatafppasswdconsiders when-cwalks the local user database to fill the file. It defaults to100β¨-w password stringβ Usestringas the password instead of typing it in interactively. Only do this when it's absolutely necessary, because the password may stick around in your terminal history in plain text π¬
π Files
afppasswd.srpβ The default SRP verifier file, living under the netatalk configuration directory. It has one line per user, formatted asusername:hex_salt:hex_verifier. Override it with-por the "srp passwd file" option in afp.conf(5) π§afppasswdβ The default legacy Randnum file, under the netatalk configuration directory. Only used with-r. Override it with-por the "passwd file" option in afp.conf(5) πafppasswd.keyβ The companion key file for the legacy Randnum file. It must contain exactly 16 hexadecimal characters with an optional trailing newline π
π«Ά See Also
afpd(8), afp.conf(5) π
π Author
Contributors to the Netatalk Project π
Netatalk 4.5.1, AFPPASSWD(1) β bestie, that's a wrap! Source version 4.5.1 ππ β¨ Stay iconic, and I'll see you in the next manpage, periodt π¦π
π¦ where this page comes from
- fedora 44: netatalk 5:4.5.1-1.fc44 Β· GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-BSD AND FSFUL AND LicenseRef-Callaway-MIT
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms