Super User is a question and answer site for computer enthusiasts and power users. 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

I need to lock a file where if anyone tries to open it then it requires a password. I would like for even root to have to type in a password different from the root's password itself. I'm not sure this is possible but any help would be appreciated. Thanks

share|improve this question

migrated from Nov 2 '11 at 8:36

This question came from our site for professional and enthusiast programmers.

You could use for instance:

mcrypt filename

it will ask you for a passphrase. To decrypt the file you should use:

mcrypt -d
share|improve this answer

You must log in to answer this question.