check user permissions linux folder code example Example: show rights inside folder debian $ ls -ld directory