26 lines
738 B
Diff
26 lines
738 B
Diff
|
|
From 3862ecd0e0d99c9591b036e6e53d84113eb24752 Mon Sep 17 00:00:00 2001
|
||
|
|
From: "Chen.Zhao" <zhao.chen@luxshare-ict.com>
|
||
|
|
Date: Wed, 11 Dec 2024 17:42:00 +0800
|
||
|
|
Subject: [PATCH] Do not remove user home dir when delete user
|
||
|
|
|
||
|
|
---
|
||
|
|
user_mgr.cpp | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/user_mgr.cpp b/user_mgr.cpp
|
||
|
|
index 873ee1d..257fbe9 100644
|
||
|
|
--- a/user_mgr.cpp
|
||
|
|
+++ b/user_mgr.cpp
|
||
|
|
@@ -1617,7 +1617,7 @@ void UserMgr::executeUserAdd(const char* userName, const char* groups,
|
||
|
|
|
||
|
|
void UserMgr::executeUserDelete(const char* userName)
|
||
|
|
{
|
||
|
|
- executeCmd("/usr/sbin/userdel", userName, "-r");
|
||
|
|
+ executeCmd("/usr/sbin/userdel", userName);
|
||
|
|
}
|
||
|
|
|
||
|
|
void UserMgr::executeUserClearFailRecords(const char* userName)
|
||
|
|
--
|
||
|
|
2.25.1
|
||
|
|
|