LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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, 06: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, 07:17 AM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 309
Blog Entries: 2

Rep: Reputation: 84
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, 07:42 AM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,275

Rep: Reputation: 99
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-21-2010 12:37 AM
can i encrypt or password protect my initrd image??? raklo Linux - Kernel 14 02-13-2007 07:32 PM
Looking for a way to password protect a file within my Home folder BadKarma Linux - Security 2 12-26-2003 09:13 PM
password protect/encrypt a single image bruce1271 Linux - Software 2 10-18-2003 09:29 PM


All times are GMT -5. The time now is 12:26 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration