Managing user accounts in Linux in Hindi – जाने हिन्दी में

Linux mein user accounts ko manage karna, naye users ko banana aur existing users ko hatana, sath hi files aur directories ke permissions aur ownerships ko badalna, yeh kuch aise prashasanik karye hain jo karna hota hai.

Managing user accounts in Linux in Hindi

Chaliye in karyon ko vyakit roop se samajh lete hain:

1. Naye Users Banana:

  • Naye user banana ke liye, useradd command ka istemal hota hai. For example, agar aap “john” naam ke naye user ko create karna chahte hain, to aap yeh command istemal karenge:
    sudo useradd john
  • User ko create karne ke baad, uske liye ek password set karein passwd command ka istemal karke:
    sudo passwd john
  • Aapko password enter karne ke liye kaha jayega, aur fir use confirm karna hoga.

2. Users Ko Hatana:

  • User ko hatane ke liye, userdel command ka istemal hota hai. For example, agar aap “john” user ko hatana chahte hain, to aap yeh command istemal karenge:
    sudo userdel john
  • User ke home directory aur files ko bhi hatane ke liye -r option ka istemal karen:
    sudo userdel -r john

3. Permissions Badalna:

  • Files aur directories ke permissions ko badalne ke liye chmod command ka istemal hota hai. Aap permissions ko sanketik roop se (jaise +r for read) ya sankhyatmak roop se (jaise 644) set kar sakte hain.
  • For example, ek file “example.txt” ke liye owner ke liye read aur write permissions dena hai, to aap yeh command istemal karenge:
    chmod u+rw example.txt
  • Isse file owner ko read aur write permissions mil jayenge.

Leave a Comment