Dec272012

Can I lock Linux folders and programs with a password?

Blake Barker asks:

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?


Browser: Firefox 17
System: Linux
Tagged: , , , , ,

6 Answers - Write an Answer

2 votes
Reply

Devendra Kumar

December 27, 2012

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

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 test.zip 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.

0 votes
Reply

ha14

December 27, 2012

Encrypt Folders (Ubuntu Linux)
http://www.faqforge.com/linux/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.

0 votes
Reply

susendeep dutta

December 28, 2012

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

http://www.instantfundas.com/2012/07/how-to-password-protect-firefox.html

1 votes
Reply

Amit Sinha

December 28, 2012

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

3 votes
Reply

Deekshith Allamaneni

January 4, 2013

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.

0 votes
Reply

fallen heart

March 16, 2013

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)

Write an Answer

Log in to MakeUseOf using one of your online accounts below.
(Why? Earn points, unlock giveaways, access exclusives)

Or, comment anonymously