Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any file password protection (NTFS)? I want to Hide & prevent of use! I know that I can hide with ".folder", but I want something whithout changing the name and I can Hide or Password it. File is on Windows partition. Thanks for answers.

share|improve this question
    
Hide and prevent use from who? –  Mitch Jun 6 '12 at 17:57
    
The question is rather vague. Do you want to hide files from Windows or from Ubuntu users, or both? –  mikewhatever Jun 6 '12 at 18:10
    
For both windows and Ubuntu. –  Ali Jun 6 '12 at 21:26

3 Answers 3

up vote 2 down vote accepted

It sounds like you have a file that you need to access, but only after a password has unlocked it, correct?

If so, I would strongly suggest you look at using TrueCrypt - http://www.truecrypt.org/. You can install it in both Windows and Ubuntu and use the same password to unlock the same file on either system.

The only drawback to your situation is that you specifically state "file password protection" but TrueCrypt creates a volume with the encrypted contents inside the volume.

share|improve this answer
    
I actually downloaded, but I just want to hide folder on both windows and Ubuntu. Thanks for answer. –  Ali Jun 6 '12 at 21:27
    
@Ali You can make the folder hidden in Windows, and make its name start with a . so it's hidden in Ubuntu too. But it can still be discovered easily by a user on either system. –  Eliah Kagan Jun 6 '12 at 21:32
    
Yeah Thanks, True-crypt working on both windows & Linux. –  Ali Jun 7 '12 at 9:34

You can use gpg to encrypt files with symmetric encryption (using a password). You will be able to decrypt these on windows if you need to using pgp or gpg for windows.

You can do this on the command line like so:

gpg -c blah.txt

There is a plugin for nautilus that allows for encryption and decryption of files, however it only supports asymmetric encryption (it will decrypt symmetric however), which is not particularly useful for encrypting files on the same hard drive as they keys are held IMO.

If you want to use that anyway it's called seahorse-nautilus and it's in the repo.

share|improve this answer

Just hiding a file doesn't keep anybody from accessing it. On both Ubuntu and Windows, hidden files can be shown easily in the graphical file browser and in the command-line. In Ubuntu, the Nautilus file browser will show such files if you go to View > Show Hidden Files (or just press Ctrl+H).

If the problem is that you want to keep people from reading the contents of a file even if they have access to the file (which includes if they stole your computer or your hard drive), you should use encryption; other answers here explain some options for that.

If the problem is that NTFS partitions are mounted in Ubuntu so that all users on your Ubuntu system have full access to them, and you want to control access to individual files and folders on your NTFS volume the same as they are controlled in Windows, then what you need to do is to mount your NTFS partition with support for NTFS permissions.

To learn how to do that, see this answer and this documentation. It's a bit complicated, but quite doable. If you have trouble, feel free to post a question asking for help.

share|improve this answer
    
Thanks for answer. –  Ali Jun 6 '12 at 21:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.