Skip to content Skip सामग्री के लिए


How to password protect files in Linux कैसे पासवर्ड लिनक्स में फ़ाइलों की रक्षा के लिए

लिनक्ससुरक्षा

If you store important information on your Linux server and want to make sure it is for your eyes only you need to password protect these files. यदि आप अपने लिनक्स सर्वर पर महत्वपूर्ण जानकारी की दुकान और सुनिश्चित करें कि यह आपकी आँखों के लिए है ही आप इन फ़ाइलों को बचाने के पासवर्ड की आवश्यकता है. Let's see how you can do this with Linux. चलो देखते हैं आप Linux के साथ ऐसा कैसे कर सकते हैं.

First, pick a good password. सबसे पहले, एक अच्छा पासवर्ड चुनना. There are a few websites on the Internet that help you generate strong passwords. वहाँ इंटरनेट कि मदद से आप मजबूत पासवर्ड उत्पन्न पर कुछ वेबसाइटें हैं. Try and pick an alphanumeric password. कोशिश करो और एक अक्षरांकीय पासवर्ड उठाओ. Something such as Rv7fkcxASW8h would be a good choice. कुछ जैसे Rv7fkcxASW8h एक अच्छा विकल्प होगा.

Now check to see if you have the package gpg installed on your computer. अब जाँच लें कि आप gpg आपके कंप्यूटर पर स्थापित पैकेज है. Run the following command to check: भागो निम्नलिखित की जांच करने के लिए कमांड:

# whereis gpg # Gpg whereis
gpg: /usr/bin/gpg /usr/share/man/man1/gpg.1.gz gpg: / usr / bin / gpg / usr/share/man/man1/gpg.1.gz

If you get an output like the one shown above it means you have the required package installed. यदि आप ऊपर दिखाए गए एक तरह एक उत्पादन प्राप्त मतलब है कि आप स्थापित पैकेज की आवश्यकता है. If not, check your Linux distribution's documentation to see how you can install the GPG package. यदि नहीं, तो अपने लिनक्स वितरण है प्रलेखन में देखें तुम GPG पैकेज कैसे स्थापित कर सकते हैं.

Say you want to password protect a file called dbbackup.zip with the password Rv7fkcxASW8h here's how you would go about it: कहते हैं कि तुम एक फ़ाइल की रक्षा पासवर्ड पासवर्ड Rv7fkcxASW8h के साथ dbbackup.zip यहाँ बुलाया है तुम इसके बारे में कैसे जाना होगा करना चाहते हैं:

# gpg -c dbbackup.zip # Gpg-c dbbackup.zip

When you enter this you will be requested to enter a passphrase, which is the password you want to protect the file with. जब आप प्रवेश यह तुम्हें एक passphrase, जो पासवर्ड आप के साथ फाइल की रक्षा करना चाहते है दर्ज करें अनुरोध किया जाएगा. Enter the password twice. पासवर्ड दो बार दर्ज करें. Now you should see a file called dbbackup.zip.gpg in the same directory as the original file. अब आप एक फाइल देखना चाहिए मूल फ़ाइल के रूप में एक ही निर्देशिका में dbbackup.zip.gpg बुलाया. This is the encrypted and password protected copy of the original file. यह मूल फ़ाइल के एन्क्रिप्टेड और पासवर्ड की रक्षा की नकल है. You can store this file on your hard drive or ship it to someone on a DVD knowing that it will be very hard and nearly impossible for most people to crack it. आप अपने हार्ड ड्राइव पर इस फाइल की दुकान या किसी को यह जानते हुए कि यह बहुत मुश्किल हो जाएगा और लगभग असंभव के लिए सबसे अधिक लोगों को यह दरार के लिए डीवीडी पर पोत कर सकते हैं.

When you want to read the file you will need to remove the password protected encryption. आप पढ़ें फ़ाइल तुम एन्क्रिप्शन की रक्षा की कूटशब्द हटाने की आवश्यकता होगी जब चाहते हैं. For that execute the following command: इसके लिए निम्न कमांड निष्पादित:

gpg dbbackup.zip.gpg dbbackup.zip.gpg gpg

You will be asked to enter the password using which the file was protected. आप के लिए है जिसके उपयोग से फ़ाइल की रक्षा की थी पासवर्ड दर्ज करें पूछा जाएगा. Enter that and you should be in business. दर्ज करें कि आप और व्यापार में होना चाहिए. Note that this only works for files and not for folders. ध्यान दें कि फ़ाइलों के लिए यह केवल काम करता है और फ़ोल्डर्स के लिए नहीं. You should create a zip or tar archive of the files you want to secure and then add the password protected encryption to it. तुम एक ज़िप या फ़ाइलें आप को सुरक्षित करना चाहते हैं और तब इसे एन्क्रिप्शन सुरक्षित पासवर्ड जोड़ने के टार अभिलेख उत्पन्न करनी चाहिए.

Posted in पोस्ट में Linux लिनक्स , , Security सुरक्षा . .

Get Simple Help tutorials just like this one in your email inbox every day - for free! बस अपने ईमेल इनबॉक्स के लिए मुफ्त हर दिन - में यह एक तरह सरल सहायता ट्यूटोरियल जाओ! Just enter your email address below: बस नीचे अपना ईमेल पता दर्ज करें:

You can always opt out of this email subscription at any time. तुम हमेशा इस ईमेल सदस्यता से बाहर किसी भी समय विकल्प चुन सकते हैं.

3 Responses 3 जवाब

Stay in touch with the conversation, subscribe to the बातचीत के साथ संपर्क में रहो, की सदस्यता लें RSS feed for comments on this post आरएसएस के इस पोस्ट पर टिप्पणियों के लिए फ़ीड . .

  1. IT Buzz आईटी बज़ says कहते हैं,

    Thanks a lot i was looking for this command from last week. बहुत बहुत धन्यवाद मैं पिछले हफ्ते से इस कमान के लिए देख रहा था. Ultimately find it at your website. अंततः यह अपनी वेबसाइट पर लगता है.

Continuing the Discussion चर्चा सतत

  1. | Standalone Sysadmin | स्वसंपूर्ण Sysadmin linked to this post on June 29, 2009 29 जून 2009 को इस पोस्ट के लिए लिंक

    [...] to ssh authentication. [...] प्रमाणीकरण ssh है. If you want to learn more about how to use it, Simple Help has a tutorial on it, covering the very basic usage. यदि आप इसका इस्तेमाल कैसे किया जाए, सरल सहायता के बारे में अधिक जानना चाहते हैं उस पर एक ट्यूटोरियल है, बहुत बुनियादी उपयोग को कवर. Once you're comfortable with that, check out the [...] एक बार तुम उस के साथ आराम कर रहे हैं, बाहर की जाँच [...]

  2. Password-protect files in Linux « Linux & Stuff पासवर्ड-लिनक्स «लिनक्स और सामग्री में फ़ाइलों की रक्षा linked to this post on July 1, 2009 1 जुलाई 2009 को इस पोस्ट के लिए लिंक

    [...] in CLI, password | Tags: CLI, password Here's a useful CLI to enable protecting special files in your system. CLI, पासवर्ड | टैग में [...]: CLI, पासवर्ड यह एक उपयोगी CLI है कि आपके सिस्टम में खास फाइल की रक्षा हो सके. To protect file.txt just run [...] File.txt की रक्षा करने के लिए बस चलाने [...]



Some HTML is OK कुछ HTML है ठीक है

or, reply to this post via या, इस पोस्ट के माध्यम से जवाब trackback Trackback . .