Jacob Meuser wrote:

> Can someone explain this:

Sure.  To create a file in /etc/cups, a process must either have
effective UID root or effective GID cups.  When you run the program as
root, it has EUID cups and GID wheel.  No match.  When you run the
program as jakemsr, it has EUID cups and GID jakemsr.  No match.

I think you want to make open_test setGID, not setUID.  Or else
/etc/cups should have owner UID of cups.

Unix permissions are tricky.

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     [EMAIL PROTECTED]

Reply via email to