Results 1 to 3 of 3

Thread: what is the best security for individual directories

  1. #1
    grglsn NNTP User

    Default what is the best security for individual directories

    I have a few files that I would like to place in a secure directory,
    where nobody else will be able to have access to them. I am running a
    simple home user system on my desktop, and sometimes ssh with my laptop,
    but we have people coming through our house from time to time. What I
    would like to do is create a directory in my home directory such that if
    I leave my computer on and I am gone for a while, and someone else comes
    up to my computer, if they click on that particular directory, they will
    not gain access to it or be able to see the files inside.

    I want to set it up so that whenever I try and access that directory,
    either from dolphin or on a command line, I have to enter a password.
    That way the contents of the directory will be fully encrypted.

    I do not want the directory to be root access - I would like it to have
    a separate password from my root access to be able to access this directory.

    What is the best way to do this? I set up an encrypted directory using
    encfs and mounted it, but once I am logged in as a user in KDE, I still
    have free access to this directory.

    These are the commands I used to set it up with encfs:
    Code:
    ~> mkdir -p ~/encrypted
    ~> mkdir -p ~/decrypted
    ~> encfs ~/encrypted/ ~/decrypted/

    --
    G.O.
    Box #1: 13.1 | KDE 4.11 | AMD Phenom IIX4 | 64 | 16GB
    Box #2: 13.1 | KDE 4.11 | AMD Athlon X3 | 64 | 4GB
    Laptop: 13.1 | KDE 4.11 | Core i7-2620M | 64 | 8GB

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: what is the best security for individual directories

    On 2014-02-10 07:34, grglsn wrote:

    > I leave my computer on and I am gone for a while, and someone else comes
    > up to my computer, if they click on that particular directory, they will
    > not gain access to it or be able to see the files inside.


    I don't know of any way to do this.

    If you leave your computer running, with your user session opened, they
    have access. You simply have to lock the session before leaving the seat.

    > What is the best way to do this? I set up an encrypted directory using
    > encfs and mounted it, but once I am logged in as a user in KDE, I still
    > have free access to this directory.


    Encrypted filesystems work that way. Once they are opened, they remain
    open unless you umount and disable the encrypted device. Manually.

    You might manage to do something to automatically umount a non-used
    filesystem after a while. But any open file, any browser window left
    opened, and the filesystem would never close.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  3. #3
    Join Date
    Jul 2008
    Location
    Warrington, England
    Posts
    111

    Default Re: what is the best security for individual directories

    Quote Originally Posted by robin_listas View Post
    On 2014-02-10 07:34, grglsn wrote:

    > I leave my computer on and I am gone for a while, and someone else comes
    > up to my computer, if they click on that particular directory, they will
    > not gain access to it or be able to see the files inside.


    )
    Set your defaults on computer to log out after 2 minutes of inactivity, Not so good, but better than nothing.
    However best is to always log out if you leave the machine.
    Regards
    Eionmac
    openSUSE LEAP 15.1 , Windows 10 ; Various old computers dual boot and Live Linux distros

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •