0

So I use KeePassx to store my passwords and I have a key file. I know I can just encrypt that file, but is it possible to store that key file somewhere on the system hidden and protected from non-root users?

Let's say I enter root password, file appears in some directory, I use it to open my KeyPassx database and then I hide that file once again.

For example I chmod 700 secretFolder which contains the key, but I still can display file and its contents without entering sudo. I want the file to appear in the directory only when I enter root password.

3
  • This is a unix question, not an ubuntu question. It might be better suited to unix.stackexchange.com.
    – user193478
    Aug 17, 2014 at 21:19
  • chown the file to root. A 700 lets the owner have access to the file also. If a DIFFERNT user tried to read the file with 700 they wouldn't be able to, only the owner and root. If you want only root then root needs to own the file.
    – Tyson
    Aug 18, 2014 at 1:31
  • Ok,chown root secretFolder works :) But are there any security implications with starting KeePassx with gksudo each time? Aug 18, 2014 at 7:12

0

You must log in to answer this question.

Browse other questions tagged .