diff options
author | Kim <kim.sidney@gmail.com> | 2018-05-24 17:02:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 17:02:13 +0200 |
commit | 00be341bb5997acbd9afa55faa914f5b46bc470b (patch) | |
tree | 6f878a30935560b190f4d008daecd367657d6c75 | |
parent | f9b87471ee07789930da4905bc9d66ebd9d8f632 (diff) | |
download | vyatta-cfg-system-00be341bb5997acbd9afa55faa914f5b46bc470b.tar.gz vyatta-cfg-system-00be341bb5997acbd9afa55faa914f5b46bc470b.zip |
set minimum uid to 1001
Name mapping will not work on uids below 1001
https://github.com/vyos/libnss-mapuser/blob/2392d2acdff02dbf3d04b6a7eb08c195bd3a6168/map_common.c#L37
-rwxr-xr-x | debian/vyatta-cfg-system.postinst.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index 86f2de7b..57c25629 100755 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -221,7 +221,7 @@ update-rc.d ec2-vyos-init start 2345 # Add radius operator user for radius users to map to if ! grep -q '^radius_user' /etc/passwd; then - adduser --quiet --firstuid 1000 --disabled-login --ingroup users --gecos "radius user" --shell /bin/vbash radius_user + adduser --quiet --firstuid 1001 --disabled-login --ingroup users --gecos "radius user" --shell /bin/vbash radius_user adduser --quiet radius_user quaggavty adduser --quiet radius_user vyattaop adduser --quiet radius_user operator @@ -232,7 +232,7 @@ fi # Add radius admin user for radius users to map to if ! grep -q '^radius_priv_user' /etc/passwd; then - adduser --quiet --firstuid 1000 --disabled-login --ingroup vyattacfg --gecos "radius privileged user" --shell /bin/vbash radius_priv_user + adduser --quiet --firstuid 1001 --disabled-login --ingroup vyattacfg --gecos "radius privileged user" --shell /bin/vbash radius_priv_user adduser --quiet radius_priv_user quaggavty adduser --quiet radius_priv_user vyattacfg adduser --quiet radius_priv_user sudo |