Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In accordance with best practices I desire not to run Wine as root, I see plenty of examples for use of setcap for networking, but not so much for file read access.

Essentially, I'm trying to give an application the capability to read all files and subdirectories with at least the following privs: -r-------- 1 root root

I've tried using built in search, but it fails. A file exists with the particular string I'm interested in, but I don't recall its filename or directory located so I intend to use PowerGREP to locate it, but files owned by root are not readily readable via apps spawned in Wine without enhancement by something like setcap.

share|improve this question

you can try CAP_DAC_READ_SEARCH capabilty while doing setcap. Which will eventually allow your appication to read all the files of any user

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.