Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: how can i right click password protect a file/folder in ubuntu?

  1. #1
    Join Date
    Jan 2012
    Location
    Debian
    Beans
    135
    Distro
    Ubuntu 10.04 Lucid Lynx

    how can i right click password protect a file/folder in ubuntu?

    okay i have this text file in gedit in my desktop like for note keeping! i do not expect this file to be accessed by everyone! i need to password protect it. how can i do this in ununtu?

    please do not suggest me the crypt-keeper! it's clearly i do not want to keep all the secret files inside the locked box called "crypt-keeper"!! the problem with that is you need to every time unlock that box to access anything inside; that's simply cumbersome!

    what i plainly want is just right click the file and password protect that particular file so that when i next time double click on it to open; it asks for the password!!

    and i expect the same to happen for folders even!

    HOPE, i put it all simple
    Last edited by tojonukokhadush; August 21st, 2013 at 04:25 PM.

  2. #2
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,827

    Re: how can i right click password protect a file/folder in ubuntu?

    You can encrypt/decrypt a file from the terminal with gnupg, but it does not meet your "right-click" criterion, so I won't go into details. If you want to know more, ask about it.

  3. #3
    Join Date
    Jan 2012
    Location
    Debian
    Beans
    135
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how can i right click password protect a file/folder in ubuntu?

    okay, let me know that as well! like i need to work only once before i open it and then its all secure from others after i close it, right?

  4. #4
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,827

    Re: how can i right click password protect a file/folder in ubuntu?

    Open terminal. Change working directory to location of the file.
    Encrypt:
    gpg -c filename
    It will ask for a password. Think one up and remember it. This same password will be used to decrypt (symmetric encryption).
    Result is a file, filename.gpg
    To decrypt filename.gpg:
    gpg -o outputfile -d filename.gpg
    Enter the password.
    Result is a decrypted file, outputfile

    If you omit the output file option, the decrypted file will write to the terminal instead.
    Note: when you encrypt, the original file remains behind. You need to delete it.

    There are lots of online tutorials on gpg which is also used for public/private key encryption. Google "gpg tutorial".

    Good luck.
    Last edited by Dennis N; August 21st, 2013 at 05:43 PM.

  5. #5
    Join Date
    Jan 2012
    Location
    Debian
    Beans
    135
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how can i right click password protect a file/folder in ubuntu?

    okay thanks a lot! i searched about "gpg tutorial" as well; they seemed quite complicated for the newbies!

    i did as instructed but got the following error-(image)
    Attached Images Attached Images

  6. #6
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,827

    Re: how can i right click password protect a file/folder in ubuntu?

    It probably worked correctly, but in the screenshot, you are trying to view the encrypted file a.gpg. The file a.gpg it needs to be decrypted before you can view the contents:

    Code:
    gpg -o <filename-for-decrypted-file> -d a.gpg
    (you could look at a.gpg in a text editor, but would only see a string of scrambled unreadable characters.)

    Tip:
    It helps to use an extension on the file you are encrypting so that when you want to decrypt it again, you (and the computer) know how to open the resulting decrypted file. sample.txt will encrypt into sample.txt.gpg. Later, when you want to decrypt this back to a normal file, it suggests the name you might use for the decrypted file (sample.txt) and the application to open it.

    Note:
    You wouldn't use this method to send encrypted files to someone else. That requires public and private keys and is another topic. It also uses gpg, however.
    Last edited by Dennis N; August 22nd, 2013 at 06:56 AM.

  7. #7
    Join Date
    Jan 2012
    Location
    Debian
    Beans
    135
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how can i right click password protect a file/folder in ubuntu?

    okay! thanks a lot!

  8. #8
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: how can i right click password protect a file/folder in ubuntu?

    you shouldn't just delete the file you should overwrite it otherwise it can be recovered. propper encypriton programs would do that i believe.

    there is a reason why cryptkeeper put them in "a box"
    Easy to understand Ubuntu manual with lots of pics: http://ubuntu-manual.org/
    Do i need antivirus/firewall in linux?
    User friendly disk backup: Redobackup

  9. #9
    Join Date
    Jan 2012
    Location
    Debian
    Beans
    135
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how can i right click password protect a file/folder in ubuntu?

    like, why isn't there so simple program to password lock individual file/folder in ubuntu? what's the big deal in that?

  10. #10
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,827

    Re: how can i right click password protect a file/folder in ubuntu?

    Quote Originally Posted by tojonukokhadush View Post
    like, why isn't there so simple program to password lock individual file/folder in ubuntu? what's the big deal in that?
    A way to password protect with no encrypting is to zip it into a password protected zip file. You can do that with just one file or several files into the same zip archive. You could extract just one from the archive for use.

    Try it out.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •