Skip to content

Commit

Permalink
changed user to nobody
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksArt000 committed Aug 21, 2024
1 parent 4239fc4 commit 067d57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 067d57d

Please sign in to comment.