tty debugging

print file permissions so we can easier figure what's going on