( ) preserve permissions (except for stdin) fstat before chmod after ( ) accept input from stdin