Results 1 to 7 of 7

Thread: password protect a directory

  1. #1
    Join Date
    Jun 2005
    Location
    England
    Beans
    2,693
    Distro
    Ubuntu 12.04 Precise Pangolin

    password protect a directory

    Is it possible under Ubuntu 10.10 to password protect a directory?

  2. #2
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    7,909

    Re: password protect a directory

    Howdy,

    Yes you can.

    That being said, you need to do a Threat Risk Assessment:
    Who are you protecting your files against?
    1. Your little kid sister.
    2. Other users of a managed multi-user system.
    3. The system administrator of the machine - assuming that the machine is managed by someone else.
    4. Commercial competitors.
    5. A government entity with unlimited funding.

    The first one can be handled by giving your little kid sister her own user account and not letting her use your account.

    The second one should not be a problem, since the other users should already have their own accounts, so it is essentially the same as the previous one.

    You can also do a variation on the theme, by making a new user account and changing the owner and group of the specific folder to the new account.

    The other options, need more serious treatment, using encryption.

    Linux offers various encryption systems varying from Zip and GPG, to TrueCrypt to LUKS to EncFS. All of them are secure.

    Pick your poison!

  3. #3
    Join Date
    Jun 2005
    Location
    England
    Beans
    2,693
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: password protect a directory

    Is there no way to just set a folder as password protected?

  4. #4
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: password protect a directory

    Quote Originally Posted by ELD View Post
    Is there no way to just set a folder as password protected?
    By default they are password protected. As long as you have the proper permissions no one but you and root can read the files / directory.

    So as herman outlined, it depends on what to need beyond that (linux permissions).

    On Linux the advice is to move to encryption. Take a look at cryptkeeper.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  5. #5
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    7,909

    Re: password protect a directory

    Howdy,

    The absolutely simplest method to provide additional protection to files, is to make an encrypted Zip file of the directory:

    Double click the file browser Nautilus on your desktop. Right click on the folder that you want to protect. Select Compress..., select Zip format, Select Other Options, Type in a password. Then, once the Zip archive is made, delete the original directory.

    These type of archives work very well with Nautilus, pretty much transparently, so it is very convenient.

  6. #6
    Join Date
    Jan 2008
    Beans
    122

    Re: password protect a directory

    You can, but its hard(ish) Easier way to protect a folder of sensitive info is to create a password protected archive.. Jush right click, pick compress, choose zip, add a password, delete the original, empty the trash, and your done. You can then brouse the archive whenever you want, but only if you have the password. To everyone else, its inaccessable. Its not a locked folder, but the effect is the same.

  7. #7
    Join Date
    Feb 2007
    Beans
    23,168
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: password protect a directory


    From the Ubuntu Forums Code of Conduct.
    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.
    Thread closed.

Bookmarks

Posting Permissions

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