Working with seteuid on write to pipe