Run as root:root not root:$LOGNAME
This commit is contained in:
parent
e97203c36b
commit
a4447e38bb
|
@ -50,6 +50,8 @@ int addclub() {
|
|||
|
||||
if (setreuid(0, 0))
|
||||
fatalpe("setreuid");
|
||||
if (setregid(0, 0))
|
||||
fatalpe("setregid");
|
||||
|
||||
if (!force && getpwnam(userid) != NULL)
|
||||
deny("user %s already exists", userid);
|
||||
|
|
|
@ -55,6 +55,8 @@ int addmember() {
|
|||
|
||||
if (setreuid(0, 0))
|
||||
fatalpe("setreuid");
|
||||
if (setregid(0, 0))
|
||||
fatalpe("setregid");
|
||||
|
||||
if (!force && getpwnam(userid) != NULL)
|
||||
deny("user %s already exists", userid);
|
||||
|
|
Loading…
Reference in New Issue