diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-09 19:28:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 19:28:41 +0100 |
commit | 10f6eac581ba46a0c235ae7c97541c7094567e70 (patch) | |
tree | cff914f134f7e71e9c1cce570e4a8e0320e95877 /src/helpers/vyos-boot-config-loader.py | |
parent | 864524ba86b0a4d57ab64d6e9398c3fd5eb2fce4 (diff) | |
parent | 07e802a2d3f98cdf29928bf321cc8b89cb41766c (diff) | |
download | vyos-1x-10f6eac581ba46a0c235ae7c97541c7094567e70.tar.gz vyos-1x-10f6eac581ba46a0c235ae7c97541c7094567e70.zip |
Merge pull request #2773 from c-po/https-rework-t5766
https: T5902: remove virtual-host configuration
Diffstat (limited to 'src/helpers/vyos-boot-config-loader.py')
-rwxr-xr-x | src/helpers/vyos-boot-config-loader.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helpers/vyos-boot-config-loader.py b/src/helpers/vyos-boot-config-loader.py index 01b06526d..42de696ce 100755 --- a/src/helpers/vyos-boot-config-loader.py +++ b/src/helpers/vyos-boot-config-loader.py @@ -102,7 +102,8 @@ def failsafe(config_file_name): 'authentication', 'encrypted-password']) - cmd(f"useradd -s /bin/bash -G 'users,sudo' -m -N -p '{passwd}' vyos") + cmd(f"useradd --create-home --no-user-group --shell /bin/vbash --password '{passwd}' "\ + "--groups frr,frrvty,vyattacfg,sudo,adm,dip,disk vyos") if __name__ == '__main__': if len(sys.argv) < 2: |