Fedora Linux Support Community & Resources Center
  #1  
Old 3rd April 2012, 10:24 PM
shabakeh Offline
Registered User
 
Join Date: Jan 2008
Posts: 164
linuxfirefox
password on a file

hi everyone

i need to put password on defined files. i need to put password for open a file even config files. how can i do that?thanks in advance
Reply With Quote
  #2  
Old 4th April 2012, 10:15 AM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 912
linuxfirefox
Re: password on a file

Have a read up on how to change ownership of files (with the command chown) and permissions of files (with the command chmod) -- that will allow you to determine which users can read, write to, or execute any given file.

Greater control is available using SElinux, but I have to say that I (personally) have never needed it, and so don't really understand it!
Reply With Quote
  #3  
Old 4th April 2012, 12:27 PM
shabakeh Offline
Registered User
 
Join Date: Jan 2008
Posts: 164
windows_7chrome
Re: password on a file

i need to ask password even root want to open a file. how can i do that?
Reply With Quote
  #4  
Old 4th April 2012, 06:12 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Birmingham, UK
Age: 32
Posts: 2,771
linuxfirefox
Re: password on a file

It sounds like you need to use encryption.

If the files can be kept together in a single directory hierarchy, you could use eCryptFS – this creates an encrypted directory which you need a key (pass-phrase) to access.

If you want to lock files arbitrarily, you'd better look at GPG, but it's a bit overkill perhaps.
Reply With Quote
  #5  
Old 4th April 2012, 06:41 PM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,685
linuxfedorafirefox
Re: password on a file

Quote:
Originally Posted by shabakeh View Post
i need to ask password even root want to open a file. how can i do that?
Emacs has an easy frontend to GPG that lets you encrypt/decrypt files with a password (assuming you have the gnupg2 and pinentry-gtk[or -qt] packages installed). Just open the file in Emacs, go to Tools --> Encryption/Decryption --> Encrypt File, and you should be prompted for the password to use. Then whenever you open the encrypted file in Emacs you'll be prompted for the password to decrypt it. That's basically what I use for a password manager: an encrypted file of passwords.
Reply With Quote
  #6  
Old 6th April 2012, 12:40 AM
bonedome Offline
Registered User
 
Join Date: Apr 2010
Location: uk
Posts: 727
linuxfirefox
Re: password on a file

Hello
bcrypt and ccrypt are very small and very simple to use, they use quite old encryption methods that won't stop the FBI or MI5 but good enough for most people
__________________
fedora 14 fluxbox and gnome2 hp compaq nx9030 laptop 2Gb ram, helicopter landing pad, jacuzzi, mini fridge, gateway to alternative dimension
Reply With Quote
Reply

Tags
file, password

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Gets Password Protected tmort Using Fedora 2 23rd March 2010 01:45 AM
Password file inop in FF3.5b4 on F11 Bad2theBone Using Fedora 0 2nd July 2009 01:34 AM
Is there a way to recover a .pdf file without the password? macgregor Using Fedora 2 23rd September 2005 10:39 PM


Current GMT-time: 15:25 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Vicar Instagram Photos - Fraccionamiento Ciudad Olmeca Travel Photos - Kirkkonummi Travel Photos on Instagram