diff options
author | Christian Breunig <christian@breunig.cc> | 2023-07-21 22:20:06 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-07-21 22:20:29 +0200 |
commit | e9153730c76f96fb585df6276b6505a00b14b17b (patch) | |
tree | 4289a58762b62e3e5c185c476283ff38149b5e46 /src/conf_mode/system-login.py | |
parent | 26af45a61bbe8b219b57127a869e723b11886522 (diff) | |
download | vyos-1x-e9153730c76f96fb585df6276b6505a00b14b17b.tar.gz vyos-1x-e9153730c76f96fb585df6276b6505a00b14b17b.zip |
login: T5363: keep home when user is deleted
Comply with the code comment and not remove the users home directory.
This also fixes the issue that user homes get cleaned on system reboot
Diffstat (limited to 'src/conf_mode/system-login.py')
-rwxr-xr-x | src/conf_mode/system-login.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/system-login.py b/src/conf_mode/system-login.py index 273475c18..afd75913e 100755 --- a/src/conf_mode/system-login.py +++ b/src/conf_mode/system-login.py @@ -389,7 +389,7 @@ def apply(login): # command until user is removed - userdel might return 8 as # SSH sessions are not all yet properly cleaned away, thus we # simply re-run the command until the account wen't away - while run(f'userdel --remove {user}', stderr=DEVNULL): + while run(f'userdel {user}', stderr=DEVNULL): sleep(0.250) except Exception as e: |