CREDS_MSDOS(8)

πŸ“¦ version 11.0, in nixpkgs unstable

creds_msdos(8) πŸ’…

okay so this page is from the System Manager's Manual, bestie, and it's all about creds_msdos. periodt. πŸ’–

🌸 NAME 🌸

creds_msdos β€” automatically add login credentials from MS-DOS partition. no cap, that's the whole vibe.

✨ SYNOPSIS ✨

creds_msdos start

πŸ¦‹ DESCRIPTION πŸ¦‹

The creds_msdos rc.d script allows automatic addition of login credentials during boot using a special file found on the MS-DOS partition of a bootable image. This script is not distributed with the normal system and is only included with pre-installed bootable images. The goal is to allow remote access of the system without having to edit the primary root file system (which may not be accessible from the host the image is being written from), but place this information in the MS-DOS partition that most platforms can easily access. iykyk 🫢

Typically, an installable image (such as arm64.img) is written to an SD card or similar media, and has both a native FFS partition as well as an MS-DOS partition for booting. If this script is enabled and has been pointed at the boot partition it will inspect the file creds.txt for any credentials to be added to the system. obsessed with a boot partition doing all that ✨

The following list gives the supported options in the credentials files. In all cases user is the username to be created, and the user will be added to the wheel group.

  • sshkeyfile user keyfile β€” Look for the keyfile in the MS-DOS boot partition and merge ssh keys from this file into user's ~/.ssh/authorized_keys file. πŸŽ€
  • sshkey user keystring β€” Add the keystring to the user's ~/.ssh/authorized_keys file. πŸ”‘
  • useraddpwhash user pwhash β€” Use pwhash as the user's password hash. πŸ”₯
  • useradd user password β€” Use password as the user's unencrypted raw password that will be hashed. 😭
⚠️ not recommended, bestie: this method leaves unencrypted passwords around until such time that the script runs. If this method is used then the creds.txt file will be shredded and deleted using rm -P after the credentials are updated. πŸ’€

πŸŽ€ FILES πŸŽ€

  • /boot/creds.txt

🌈 SEE ALSO 🌈

pwhash(1), rm(1), ssh(1), ssh_config(5), mount_msdos(8), sshd(8), useradd(8)

⭐ HISTORY ⭐

The creds_msdos script appeared in NetBSD 9.0. iconic behavior 🌟

πŸ‘‘ AUTHORS πŸ‘‘

Matthew R. Green <mrg@eterna23.net>.


πŸ’œ source/version/date sign-off: Debian, June 10, 2019, CREDS_MSDOS(8). okay bye bestie 🫢

πŸ“¦ where this page comes from