From 067d57d8c84220b5345874d309cc1a4e76e401f1 Mon Sep 17 00:00:00 2001 From: AleksArt000 Date: Wed, 21 Aug 2024 15:53:32 +0200 Subject: [PATCH] changed user to nobody --- src/install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install.c b/src/install.c index 0bc38b5..163ef60 100755 --- a/src/install.c +++ b/src/install.c @@ -174,11 +174,11 @@ int f_install_package_source(const char* spm_path, int as_dep, char* repo) { if (getuid() == 0) { /* process is running as root, drop privileges */ - if (setgid(1000) != 0) + if (setgid(65534) != 0) { msg(ERROR, "setgid: Unable to drop group privileges"); } - if (setuid(1000) != 0) + if (setuid(65534) != 0) { msg(ERROR, "setuid: Unable to drop user privileges"); }