Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Sep 1999 15:20:26 +0700
From:      Eugene Grosbein <eugen@svzserv.kemerovo.su>
To:        security@FreeBSD.ORG
Subject:   /usr/sbin/edquota says "Permission denied" if(getuid())
Message-ID:  <37E73FCA.1DF0C8DF@svzserv.kemerovo.su>

index | next in thread | raw e-mail

Hello!

I have root-owned suid-marked CGI-BIN program
that creates new users via /usr/sbin/pw.

It also should set userquotas via 
/usr/sbin/edquota -p template_username -u new_username

But when equota starts, getuid()==65534 and geteuid()==0
and edquota complains :(
What is the reason using getuid() and not geteuid()?

Eugene Grosbein


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37E73FCA.1DF0C8DF>