Ubuntu में पासवर्ड कैसे बदलें | GUI और कमांड लाइन के लिए पूर्ण गाइड

1. परिचय

उबंटू में अपना पासवर्ड बदलने का महत्व

उबंटू एक ओपन‑सोर्स लिनक्स वितरण है जिसका उपयोग दुनिया भर में लाखों उपयोगकर्ता करते हैं। इसका उपयोगकर्ता‑मित्र इंटरफ़ेस और मजबूत सुरक्षा सुविधाएँ इसे व्यक्तियों, व्यवसायों और डेवलपर्स के बीच लोकप्रिय बनाती हैं। हालांकि, सुरक्षा सर्वोत्तम प्रथाओं के हिस्से के रूप में, पासवर्ड को नियमित रूप से बदलना अत्यंत आवश्यक है। एक ही पासवर्ड को लंबे समय तक उपयोग करने से सुरक्षा जोखिम बढ़ते हैं, इसलिए सावधानी बरतना आवश्यक है।

पासवर्ड आपके सिस्टम तक पहुँच को नियंत्रित करने में महत्वपूर्ण भूमिका निभाते हैं। अनधिकृत पहुँच को रोकना चाहते हैं, तो अपने पासवर्ड को मजबूत करना और उसे नियमित रूप से अपडेट करना आवश्यक है। इसके अलावा, यदि आप अपना डिवाइस परिवार, मित्रों या सहयोगियों के साथ साझा करते हैं या रिमोट वातावरण में काम करते हैं, तो पासवर्ड प्रबंधन और भी महत्वपूर्ण हो जाता है।

यह गाइड किसके लिए है?

यह गाइड मुख्यतः शुरुआती उबंटू उपयोगकर्ताओं और उन लोगों के लिए लिखी गई है जो नियमित रूप से उबंटू का उपयोग करते हैं लेकिन सुरक्षा को लेकर चिंतित हैं। यह आईटी कर्मियों और सिस्टम प्रशासकों के लिए भी मूल्यवान अंतर्दृष्टि प्रदान करती है, जिससे सुरक्षा जोखिमों को कम करने के लिए चरण‑दर‑चरण निर्देश मिलते हैं। शुरुआती भी कमांड‑लाइन उदाहरणों और विस्तृत रूप से समझाए गए GUI‑आधारित तरीकों के साथ इस गाइड का अनुसरण कर सकते हैं।

年収訴求

2. उबंटू में पासवर्ड बदलने के बुनियादी तरीके

उबंटू में कमांड लाइन इंटरफ़ेस (CLI) का उपयोग करके पासवर्ड बदलना एक सामान्य प्रथा है। यह तरीका अत्यधिक कुशल और शुरुआती के लिए भी सीधा है। नीचे हम पासवर्ड बदलने के बुनियादी चरणों का परिचय देंगे।

2.1 अपना स्वयं का पासवर्ड कैसे बदलें

पासवर्ड बदलने का सबसे बुनियादी तरीका passwd कमांड का उपयोग करना है। यह कमांड आपको अपने खाते का पासवर्ड अपडेट करने की अनुमति देता है।

चरण:

  1. टर्मिनल खोलें उबंटू में टर्मिनल लॉन्च करें। आप इसे आसानी से Ctrl + Alt + T दबाकर खोल सकते हैं।
  2. passwd कमांड चलाएँ निम्नलिखित कमांड दर्ज करें:
   passwd

यह कमांड वर्तमान में लॉग‑इन किए गए उपयोगकर्ता का पासवर्ड बदलने के लिए उपयोग की जाती है।

  1. अपना वर्तमान पासवर्ड दर्ज करें सिस्टम आपसे आपका वर्तमान पासवर्ड पूछेगा। इसे सही ढंग से टाइप करें और एंटर दबाएँ।
  2. नया पासवर्ड सेट करें आपसे नया पासवर्ड दो बार दर्ज करने को कहा जाएगा। पहले अपना नया पासवर्ड टाइप करें, फिर पुष्टि के लिए फिर से टाइप करें। आपका पासवर्ड अब अपडेट हो गया है।

पासवर्ड परिवर्तन सफलता संदेश

जब पासवर्ड सफलतापूर्वक बदल दिया जाता है, तो आपको निम्नलिखित संदेश दिखाई देगा:

passwd: password updated successfully

आपका पासवर्ड अब अपडेट हो गया है।

2.2 किसी अन्य उपयोगकर्ता का पासवर्ड कैसे बदलें

यदि आप सिस्टम प्रशासक हैं और किसी अन्य उपयोगकर्ता का पासवर्ड बदलना चाहते हैं, तो आप sudo कमांड का उपयोग कर सकते हैं। इस विधि के लिए प्रशासनिक विशेषाधिकार आवश्यक होते हैं।

चरण:

  1. sudo passwd [username] कमांड चलाएँ प्रशासक के रूप में किसी अन्य उपयोगकर्ता का पासवर्ड बदलने के लिए निम्नलिखित कमांड का उपयोग करें:
   sudo passwd [username]

उदाहरण के लिए, यदि आप john नामक उपयोगकर्ता का पासवर्ड बदलना चाहते हैं, तो दर्ज करें:

   sudo passwd john
  1. प्रशासक पासवर्ड दर्ज करें सिस्टम आपसे आपका प्रशासक पासवर्ड पूछेगा। इसे सही ढंग से टाइप करें और एंटर दबाएँ।
  2. नया पासवर्ड सेट करें लक्ष्य उपयोगकर्ता के लिए नया पासवर्ड दर्ज करें और उसे फिर से दर्ज करके पुष्टि करें। उपयोगकर्ता का पासवर्ड अब अपडेट हो गया है।

यह विधि प्रशासकों को तब पासवर्ड रीसेट करने की अनुमति देती है जब उपयोगकर्ता स्वयं अपना पासवर्ड बदलने में असमर्थ हो।

3. GUI का उपयोग करके पासवर्ड बदलना

उबंटू में आप कमांड लाइन के बजाय ग्राफ़िकल यूज़र इंटरफ़ेस (GUI) का उपयोग करके अपना पासवर्ड बदल सकते हैं। यह उन उपयोगकर्ताओं के लिए एक सुविधाजनक तरीका है जो CLI कमांड से परिचित नहीं हैं। नीचे GUI का उपयोग करके पासवर्ड बदलने के चरण दिए गए हैं।

3.1 सेटिंग्स पैनल खोलना

  1. Access the “Settings” menu
    First, open the “Activities” screen in Ubuntu. Click the “Activities” button in the top left corner and type “Users” in the search bar. Click on the “Users” option that appears in the search results to open the settings panel.

  2. Open the “Users” settings panel
    Once inside the “Users” panel, you will see information about your current user account. Use this panel to update your password.

3.2 Steps to Change Your Password

  1. Select the “Password” field
    Click on the hidden password field (e.g., ●●●●●) to change your password. If you want to change another user’s password, click the “Unlock” button first to enable administrator access.

  2. Enter your current password
    Before changing the password, you need to enter your current password. Type it correctly and click “Confirm.”

  3. Enter a new password
    A new password input screen will appear. Enter your new password, then re-enter it to confirm. It is recommended to use a strong password.

  4. Complete the password change
    After entering the new password, click the “Change” button to update it. Your new password is now set and will be used for your next login.

3.3 Changing Another User’s Password

If you are an administrator and need to change another user’s password, first enable administrator access in the “Users” settings panel. Click the “Unlock” button and enter your administrator password. Then, access the password field for the target user and follow the same steps to set a new password.

3.4 Advantages and Considerations of Using GUI

Changing passwords via GUI is very convenient for users unfamiliar with the command line. Since it provides a visual interface, the risk of errors is lower, and the process is more intuitive. Additionally, there is no need to type complex commands, making it more accessible for beginners. However, since administrators can change other users’ passwords, proper security measures should be in place.

4. What to Do If You Forget Your Password

If you forget your password in Ubuntu, you will not be able to log in using the standard method. However, you can reset your password using the GRUB menu or Recovery Mode. This section explains how to reset your password in case you forget it.

4. What to Do If You Forget Your Password

If you forget your password in Ubuntu, you will not be able to log in using the standard method. However, you can reset your password using the GRUB menu or Recovery Mode. This section explains how to reset your password in case you forget it.

4.1 Resetting Password via Recovery Mode

  1. Restart your computer
    If you cannot log in, restart your computer.

  2. Access the GRUB menu
    When the system boots up, hold down the Shift key (for BIOS systems) or press Esc repeatedly (for UEFI systems) to open the GRUB menu.

  3. Select Recovery Mode
    In the GRUB menu, select the option labeled Advanced options for Ubuntu , then choose Recovery mode .

  4. Enter root mode
    Once in the recovery menu, select root to open a root shell prompt.

  5. Remount the filesystem
    The root filesystem is mounted as read-only by default. To modify files, remount it as read-write by entering:

mount -o remount,rw /
  1. Reset your password
    Use the following command to reset your password:
passwd [your-username]

Replace [your-username] with your actual username. If you don’t remember your username, use:

ls /home
  1. Enter a new password
    You will be prompted to enter a new password twice.

  2. Reboot the system
    After successfully changing your password, restart your computer by typing:

reboot

You should now be able to log in with the new password.

5. Best Practices for Password Security

To enhance your security, consider the following password management best practices:

  • कम से कम 12 अक्षरों वाला, जिसमें बड़े और छोटे अक्षर, संख्याएँ और विशेष वर्ण शामिल हों, एक मजबूत पासवर्ड का उपयोग करें।
  • कई खातों के लिए एक ही पासवर्ड का कभी उपयोग न करें।
  • सुरक्षा जोखिमों को कम करने के लिए अपना पासवर्ड नियमित रूप से बदलें।
  • अपने क्रेडेंशियल्स को सुरक्षित रूप से संग्रहीत करने के लिए पासवर्ड मैनेजर का उपयोग करने पर विचार करें।
  • संभव हो तो दो-कारक प्रमाणीकरण (2FA) सक्षम करें।

6. निष्कर्ष

उबंटू में अपना पासवर्ड बदलना सुरक्षा बनाए रखने का एक सरल लेकिन महत्वपूर्ण कदम है। चाहे आप कमांड लाइन का उपयोग करें या GUI, अपने पासवर्ड को नियमित रूप से अपडेट करना और सर्वोत्तम सुरक्षा प्रथाओं का पालन करना आवश्यक है। यदि आप अपना पासवर्ड भूल जाते हैं, तो आप रिकवरी मोड या GRUB मेनू के माध्यम से इसे रीसेट कर सकते हैं।

मजबूत पासवर्ड नीतियों को लागू करके और नियमित रूप से क्रेडेंशियल्स को अपडेट करके, आप अपने सिस्टम की सुरक्षा में उल्लेखनीय सुधार कर सकते हैं।