open() throws permission error and I don't get why

2010-10-15 Thread Andy Theuninck
I'm trying to write a script to read e-mail over stdin, extract attachments, and distribute them around the file system based on the incoming e-mail address. Everything works until I actually try writing interesting file system locations. I've established, through logging, that postfix runs my sc

Re: open() throws permission error and I don't get why

2010-10-15 Thread Andy Theuninck
> I suspect that postfix is only setting the UID and the (primary) GID, > but not the supplementary GIDs. In which case, it doesn't matter whether > "nobody" is a member of the group. That does seem like a good explanation. I guess I'll have to re-think my approach a bit. sg sounds like it would g