Run as root:root not root:$LOGNAME

This commit is contained in:
Michael Spang 2008-06-08 01:41:29 -04:00
parent e97203c36b
commit a4447e38bb
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);