LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-14-2006, 12:15 AM   #1
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Rep: Reputation: 31
Password protecting specific files


I am wondering if there is a convenient way to assign a password to certain files, namely OpenOffice.org documents. Normally, I would just change permissions, but that makes the documents a real bother for me to access: logging in as root and opening from command line. Is there a way to allow for a dialog box to appear asking for a password whenever I open these files or some similar method?
 
Old 04-14-2006, 12:40 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
If you use KDE, you can use KGpg to encrypt the file. Make sure you delete the original and remember the password. I just tried it on mine and it worked fine. Gentoo and using KDE 3.5.2.

Hope that helps

 
Old 04-16-2006, 11:31 PM   #3
operator10001
Member
 
Registered: Mar 2006
Distribution: debian sarge
Posts: 222

Rep: Reputation: 30
oo has a "password protect" feature, but its not very good. backup the stuff to disk and then wash or scrub your harddrive.
operator
 
Old 04-17-2006, 07:08 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Perhaps some more information might be helpful:
  1. What is the Home vs. Office, LAN vs. stand-alone context we are talking about here?
  2. What kind of files are you talking about?
  3. How sensitive are they?
  4. Who are you trying to protect them from?
  5. What kind of access do they have to your computer?
 
Old 04-17-2006, 12:47 PM   #5
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
You can also check out using dm-crypt to encrypt the partition where the files are to be stored. Personally, I encrypt my /home and store my personal items there.
 
Old 04-17-2006, 11:30 PM   #6
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by archtoad6
Perhaps some more information might be helpful
Sorry for not elaborating earlier. It seems silly, but I have had trouble in the past with people breaking into my computer. I will be moving into a shared apartment that will often receive many visitors. This is just for my stand-alone desktop computer. The documents are not highly sensitive, but they are important, and I simply want to keep people from tampering with them. Basically I need a second line of defence if someone happens to watch me type in my regular user password or if I forget to lock the screen before leaving my desk. I think I will stay away from encryption, because I want to be sure that I, myself, won't accidently lose access to the files.
 
Old 04-18-2006, 05:02 AM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
More of a social problem than a technical one.

1 of the truisms of computers is "physical access == ownership", I think encryption is the only sure way to keep intruders out. I also understand your reluctance to use it. Besides, what is to prevent someone really malicious from doing an rm -rf /?

How well do you trust your new apartment mates? Will they keep out of your stuff & more important, do they feel any responsibility for policing their guests' behavior?

Can you place the machine w/ your back to the wall?
Can you train them to deliberately & obviously look away or shield their eyes when you enter your password? (Here in Houston at HLUG this proper etiquette at our weekly workshop.)
Will you feel foolish asking people to look away when you enter your password?

You need to learn to NOT leave it unlocked & unattended, just like you lock your doors. Make it a habit. You're no longer living in the cyber equivalent rural America (or wherever), where you can leave your front door open & the keys in your car.


On the technical side:

Will OOo password protection cover enough types of files to suit you? Or do you have plaintext files as well?

Change you password more often.

Activate the locking feature in your screensaver.

...
 
Old 04-18-2006, 10:13 PM   #8
operator10001
Member
 
Registered: Mar 2006
Distribution: debian sarge
Posts: 222

Rep: Reputation: 30
there is only 1 security. keep the risky person away!
operator
 
Old 04-19-2006, 01:55 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by archtoad6
...Activate the locking feature in your screensaver.
Definitely so. Use a maximum of 3 minutes to automatic locking (works well here). Furthermore, there is a feature which uses the mouse for instant locking, e.g. when you move the mouse pointer into the upper right corner (or somwhere else). That should be easy enough to get quickly used to.

Another way might be the sleep modus (ACPI) of your computer...
 
Old 04-20-2006, 04:26 AM   #10
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
how about
# man gpg
 
  


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
Password protecting tar files jayakrishnan Linux - General 3 01-13-2008 11:02 PM
Password protecting a directory? How? Thrifty Linux - Security 7 07-20-2004 08:25 PM
HTML password protecting darin3200 General 19 06-03-2003 03:13 AM
password protecting two files to two different databases on Apache? RKris Linux - Software 0 02-24-2003 06:04 AM
password protecting directories jayakrishnan Linux - General 2 02-10-2003 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:40 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