Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with user.update endpoint
User may have nologin shell causing the attempt to run cp in a subprocess to fail due to failure to su to the user in question (due to error in pam_open_session()). After review of history for why we were subprocessing out to perform this task, I failed to find a compelling reason why we could not simply use shutil.copytree without switching the user context. This also fixes a bug whereby home directory was not being saved when the user tried to switch their home directory to a subdirectory of their current one.
- Loading branch information