Results 1 to 8 of 8
Hi,
Is it possible to set the permissions (or use some utility) which :
1)Only allows files to only be accessed by a given user
2)which cannot be "overrided" by ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-17-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 2
File permissions to restrict access (like Windows XP encryption)
Hi,
Is it possible to set the permissions (or use some utility) which :
1)Only allows files to only be accessed by a given user
2)which cannot be "overrided" by root
3)which does not require a password in order to access the files
Something like Windows XP encryption.
Thanks
- 08-17-2011 #2
- 08-17-2011 #3Just Joined!
- Join Date
- Aug 2011
- Posts
- 2
Hi, thanks. So if you then moved the file to another computer would it still be viewable? I was looking for something like Windows XP certificates, which would not allow the file to be viewed on another computer without the relevant certificate.
- 08-17-2011 #4Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,745
Then encrypt the file with gpg. It is likely already installed on your system ("which gpg").
With GPG, you can encrypt your file symmetrically (using a password to protect it), or asymmetrically (using public/private key pairs).
The former way, just do:
You will be prompted to enter a passphrase to protect the file. The new file "myfile.gpg" is created.Code:gpg -o myfile.gpg -c myfile.txt
To decrypt it:
You will be prompted to enter the passphrase to decrypt the file.Code:gpg -o myfile.txt -d myfile.gpg
To use asymmetrical encryption, you'll need to generate keys first, then share your public key with some trusted peer (who will import this into their keyring). Then you can encrypt and sign your file and only someone with your public key can decrypt it.
- 08-17-2011 #5Linux Newbie
- Join Date
- Jun 2004
- Location
- Halesowen, West Midlands, UK
- Posts
- 100
- 08-18-2011 #6
- 08-18-2011 #7Just Joined!
- Join Date
- Feb 2007
- Posts
- 20
eCryptfs might be worth a look
I hear that eCryptfs can encrypt files as they are written and decrypt them as they are read, using your logon password to store your encryption password. I haven't used it, but it sounds useful
- 08-18-2011 #8Just Joined!
- Join Date
- Jul 2006
- Location
- localhost
- Posts
- 26
I don't think there are any permissions which can actually replace encryption.
Have a look at encrypted home folders, I think most major distros have a way of doing it (the solution posted by anotherzeb sounds interesting as well).


Reply With Quote

