Various users and access rights in linux in hindi

Linux mein, various users aur unke access rights (permissions) ka management bahut important hota hai. Yahan, main aapko Linux mein users aur unke access rights ko samjhane ki koshish karunga.

Various users and access rights in linux in hindi

  1. Users (Users):
  • Linux mein, har user ek unique username aur user ID (UID) ke sath hota hai.
  • Users ke alag-alag groups mein bhi ho sakte hain, aur unke liye ek unique group ID (GID) hota hai.
  • Root user, jiska UID 0 hota hai, system ka administrator hota hai aur usko sabhi permissions milti hain.
  1. File Permissions (Access Rights):
  • Linux files aur directories ke liye 3 tarah ke permissions hote hain: read (r), write (w), aur execute (x).
  • In permissions ko owner, group, aur others ke liye set kiya jata hai.
  • Owner (File Owner):
    • File ya directory ka owner woh user hota hai jisne usko create kiya hai.
    • Owner permissions ko set karne ke liye chmod command ka istemal hota hai.
  • Group (File Group):
    • File ya directory ek specific group ke members ke liye accessible ho sakta hai.
    • Group permissions ko set karne ke liye chmod command ka istemal hota hai.
  • Others (Others):
    • Baaki sabhi users (jinhone owner ya group mein include nahi kiya gaya) ke liye permissions set ki jaati hain.
    • Others permissions ko set karne ke liye chmod command ka istemal hota hai.
  1. chmod (Change Mode):
  • chmod command ka istemal file aur directory permissions ko change karne ke liye hota hai. Example:
   chmod u+r file.txt
   chmod g-w directory/
   chmod o+rx script.sh

Is tarah se chmod command se user (u), group (g), aur others (o) ke liye read (r), write (w), aur execute (x) permissions ko add (+) ya remove (-) kiya ja sakta hai.

  1. chown (Change Owner):
  • chown command ka istemal file ya directory ke owner ko change karne ke liye hota hai. Example:
   chown new_owner:group_name file.txt

Is command se “file.txt” ka owner “new_owner” aur group “group_name” mein set ho jayega.

Linux mein, users aur permissions ko manage karna security ke liye bahut zaroori hota hai. Sahi tarah se permissions set karna aur users ko appropriate access dena, data security aur privacy ko maintain karne mein madadgar hota hai.

Leave a Comment