Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

1 Answer 1

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


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