>sorry, forgot to touch/create the file before writing to it You should never have to do this. The > should create the file if it doesn't exist. This is what one expects for tmp permissions and ownership: drwxrwxrwt 20 root root 32768 Mar 2 08:44 tmp If it doesn't look like this, run chmod 1777 /tmp The 1 at the beginning corresponds to the 't' at the end. This is the "sticky" bit. On a directory it tells the system to allow anyone to create files here, but don't allow people to modify files they don't own. -- Twist that stump kitty Twist it! Thump! Kitty's dead now He's hamster hors d'oerves http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD