This commit is contained in:
2025-10-22 11:29:48 +08:00
parent 7c2ee6652e
commit 06dc713576

View File

@@ -58,6 +58,8 @@ def prepare_user(spawner: Spawner):
if user_dir.exists():
shutil.rmtree(user_dir)
user_dir.mkdir(mode=0o700, parents=True, exist_ok=True)
# 关键:让 systemd 能进去
shutil.chown(user_dir, user=username, group=username)
# 2. 读控制表
res_map, _ = load_ctrl()