Can I lock Linux folders and programs with a password?

Blake Barker December 27, 2012

Is there a way to lock a browser or a specific folder with a passowrd? Just like I can on my Android, simply lock Apps with a custom passowrd. Then the user must enter the password before launching the program or accessing the folder.

Any ideas?

  1. fallen heart
    March 16, 2013 at 4:03 pm

    U can't password lock a file onlinux but u can change its permission so that anyone else niether reads it nor deletes it look for chmod command chmod +rwx to add permission chmod -rwx to remove permissions (r= read w =write x= execute)

  2. Deekshith Allamaneni
    January 4, 2013 at 12:01 pm

    Use password protected 7zip file and also check the option to encrypt file names for better security.

    Actually, zip format also has this option to password protect but it cannot encrypt file names.

  3. Amit Sinha
    December 28, 2012 at 9:06 am

    you can't lock folder but alternatively you can restrict access to certain files where the files can be opened, edited or deleted by authorized user

  4. susendeep dutta
    December 28, 2012 at 6:58 am

    For browser,most of the Linux distro comes with Firefox browser as default.So,follow the steps mentioned in the link below -

  5. ha14
    December 27, 2012 at 9:21 am

    Encrypt Folders (Ubuntu Linux)
    To encrypt folders on Linux Ubuntu there is a simple program called Cryptkeeper which, while active, lets you mount and dismount password protected folders.

  6. Devendra Kumar
    December 27, 2012 at 6:17 am

    This question is being asked by many Linux users on various forums. Today I searched on Google and found this solution on

    You can password protect a zip file. Proceed as follows:

    Create a directory for this experiment, and name it test.
    Copy a few files and paste them into this directory so it isn't empty.
    Now open a terminal and enter:
    $ zip -e -r test test
    Enter password:
    Verify password:
    Delete the directory test.

    Now you have a file which is password protected.

    zip with -e option encrypts the contents of the zip archive using a password. This encrypts with standard pkzip encryption which is considered weak.

    However, the job of protecting the file is done, because even the root user needs the password or should be a hacker to decrypt.

Ads by Google