Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I tried to encrypt /var/www with encfs. To do so I did following:

mv /var/www /var/www.bak
mkdir /var/www_enc
encfs --public /var/www_enc /var/www
cp -a /var/www.bak/* /var/www/
/etc/init.d/apache2 restart

I tried it with my local ikiwiki (localhost/myikiwiki). Browsing worked perfectly but when I tried to save an edit I got the following error message:

Failed to save your changes.

Your changes were not able to be saved to disk. The system gave the error:

Your changes are preserved below, and you can try again to save them. 

However if I revert the changes, everything works perfectly.

I don't understand this, since the encrypted /var/www folder should look to the outside world exactly as the old unencrypted version would (especially because I used the --public switch).

Any idea what may be wrong and how to fix it?

System Info:

  • Ubuntu 11.04
  • Apache2: 2.2.17-1ubuntu1.2
  • ikiwiki version 3.20110124ubuntu1
share|improve this question
    
What's the point of encrypting it, then? –  Michael Hampton Feb 19 '13 at 17:48
    
It's on a laptop, when the laptop is shutdown it is encrypted on the hard drive. –  student Feb 19 '13 at 17:49

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.