6-add-ssh-to-bootloader #20
| @@ -127,18 +127,16 @@ export ARCHZBM_ZFSPROPS_NO_ENCRYPTION=yup | |||||||
|  |  | ||||||
| ### Passwords | ### Passwords | ||||||
|  |  | ||||||
| By default both the zpool password and the account password for `root` are literally `password`. While you can certainly change these after initial system setup you can also optionally set these passwords in a settings file named `archzbm_settings.env` that lives in your current working directory where you're about to execute the script. File format is identical to shell variable assignments of the form `VAR=value` or `VAR='value'`. | By default both the zpool password and the account password for `root` are literally `password`. While you can certainly change these after initial system setup (see [Password change](#password-change)) you can also optionally set passwords as follows: | ||||||
|  |  | ||||||
| If `./archzbm_settings.env` exists the script will `source` its content and `export` all variables for use in future steps. Only known variables are: |  | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| ARCHZBM_ZPOOL_PASSWORD='a fancy password' | ARCHZBM_ZPOOL_PASSWORD='a fancy password' | ||||||
| ARCHZBM_ROOT_PASSWORD='t0psecr3t!' | ARCHZBM_ROOT_PASSWORD='t0psecr3t!' | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| > While the `root` password may be weak and `chpasswd` won't care do make sure to set a zpool password that meets ZFS' complexity rules. Per `man 7 zfsprops` section `keyformat` the only requirement is a length "between 8 and 512 bytes" (as in minimum 8 characters). If you pick a password that's too weak ZFS will reject zpool creation and very ungracefully derail the rest of this script. The script doesn't check what you're setting. | > While the `root` password is allowed to be weak and `chpasswd` won't care do make sure to set a zpool password that meets ZFS' complexity rules. Per `man 7 zfsprops` section `keyformat` the only requirement is a length "between 8 and 512 bytes" (as in minimum 8 characters). If you pick a password that's too weak ZFS will reject zpool creation and very ungracefully derail the rest of this script. The script doesn't check what you're setting. | ||||||
|  |  | ||||||
| The script does create a second user named `build` but doesn't set a password on account creation. As such no password variable can be set for it in `./archzbm_settings.env`. It's intended as a helper for system setup tasks such as `sudo -u build paru -S <package>` where an account password is irrelevant since `root` can always `sudo` whatever it wants. You will not be able to log in to the `build` account yourself although you certainly could set a password for it. Instead we suggest you create a proper user account for yourself. Your newly installed Arch Linux comes with an `/etc/motd` greeting that summarizes this as: | The script does create a second user named `build` but doesn't set a password on account creation. It's intended as a helper for system setup tasks such as `sudo -u build paru -S <package>` where an account password is irrelevant since `root` can always `sudo` whatever it wants. You will not be able to log in to the `build` account yourself although you certainly could set a password for it. Instead we suggest you create a proper user account for yourself. Your newly installed Arch Linux comes with an `/etc/motd` greeting that summarizes this as: | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| useradd --create-home --shell /bin/bash --user-group --groups wheel <user> | useradd --create-home --shell /bin/bash --user-group --groups wheel <user> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user