Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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 filename.nc
share|improve this answer

Your Answer

 
discard

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