ls: cannot open directory /: Permission denied

Asked by Kajetan on 2014-04-11

Whenever I try to run the 'ls'-command in the Terminal-app in '/', I get the error "ls: cannot open directory /: Permission denied". Even when I log in as root via 'sudo su root' I get this error message.
However, when I log in to my device via 'adb shell' I can run 'ls' in '/' and get the expected directory listing.

How can I list my files in '/' using the Terminal-app? Could this be a bug?

(My device is a Nexus 4, I'm running Trusty Thar and the build is r250)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Terminal App Edit question
Assignee:
No assignee Edit question
Solved by:
Victor Thompson
Solved:
2014-04-12
Last query:
2014-04-12
Last reply:
2014-04-12
Best Victor Thompson (vthompson) said : #1

There's a similar bug for the Filemanager [1] where no files in the root directory '/' are displayed. This is an app confinement/permissions issue since click packages aren't ran as root.

[1] https://bugs.launchpad.net/ubuntu-filemanager-app/+bug/1266114

Kajetan (kajetan-krischan) said : #2

Thanks Victor Thompson, that solved my question.