LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2012, 05:01 AM   #1
karanace
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Is it possible to password protect a folder/file . I don't want to encrypt it


I am a engineering student and i am trying to build a folder locking application for linux . My target is to create a application similar to window folder lockers.

Please Help.........
Desperately waiting for your suggestions
 
Old 03-02-2012, 06:17 AM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
You can change the folder's permissions so no user other than root can access the files inside:
Code:
# chmod 600 /path/to/folder
Then set the owner as root (if not already).
Code:
# chown root:root /path/to/folder
This will set your folder so that all user accounts on the local machine are denied access to the folders contents, except for the root account.

I'm not sure what you mean by password protecting a folder without encrypting it. There wouldn't be much point of "protecting" a folder with a password if it is not going to be encrypted in some way or another, assuming all accounts on the system have read access to the folder.
 
Old 03-02-2012, 06:42 AM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Thumbs down

Quote:
Originally Posted by karanace View Post
I am a engineering student and i am trying to build a folder locking application for linux . My target is to create a application similar to window folder lockers.

Please Help.........
Desperately waiting for your suggestions
Hi Karan,

You can use zip I guess.

Quote:
zip -re folder.zip folder (it will ask for a password twice to encrypt))

unzip folder.zip(it will ask for a password to decrypt)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to encrypt (or at least password-protect) a single directory? agi93 Slackware 15 07-20-2010 11:37 PM
can i encrypt or password protect my initrd image??? raklo Linux - Kernel 14 02-13-2007 06:32 PM
Looking for a way to password protect a file within my Home folder BadKarma Linux - Security 2 12-26-2003 08:13 PM
password protect/encrypt a single image bruce1271 Linux - Software 2 10-18-2003 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration