LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-05-2014, 01:50 PM   #1
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986

Rep: Reputation: 53
Easy way to lock file with a password?


Is there a method to lock a file from a general user but give them a password to open one directory or file without giving them the root password?

Thanks in advance!
 
Old 01-05-2014, 02:10 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
You can do it with encryption. Encrypt the file(s) or file tree you want to protect and only give the password to authorized users. You can have different sets of files encrypted with different passwords.

----------------
Steve Stites

Last edited by jailbait; 01-05-2014 at 02:11 PM.
 
1 members found this post helpful.
Old 01-05-2014, 02:44 PM   #3
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986

Original Poster
Rep: Reputation: 53
I have a bunch of Rpm type Distros I'm using that are all non-updatable. Is there a command I could download and install to do this?
 
Old 01-05-2014, 03:15 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
Quote:
Originally Posted by theKbStockpiler View Post
Is there a command I could download and install to do this?
I use the ccrypt command to do what you want to do.

---------------------
Steve Stites
 
Old 01-05-2014, 03:42 PM   #5
schizophrenia
LQ Newbie
 
Registered: Jan 2014
Distribution: Mageia 3
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by theKbStockpiler View Post
Is there a method to lock a file from a general user but give them a password to open one directory or file without giving them the root password?

Thanks in advance!
There is gpg, openssl and ccrypt as jailbait said.

I use ccrypt myself on a text file with my passwords and logins. Another command that is part of the ccrypt package is ccat. I use this command to quickly view the encrypted text file without re-encrypting it again. But, you still need the key to view it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lock file with password krool89 Programming 5 04-24-2013 07:56 AM
Password File Lock mattekure Linux - Newbie 2 06-13-2011 10:45 AM
can not lock password database file sixty_nine Linux - Enterprise 1 03-17-2008 05:11 PM
Instal Error cannot lock password file mlux Slackware 3 07-26-2003 04:43 PM
unable to lock password file beefyd Linux - Security 3 09-08-2002 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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