fix tty permissions