إدارة المستخدمين والمجموعات - الفصل 6

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

ما هو نظام تشغيل لينكس؟

لينكس هو نظام تشغيل متعدد المستخدمين.

ما هو دور سياسة أذونات الوصول في لينكس؟

تُستخدم سياسة أذونات الوصول لمنع الوصول غير المصرح به إلى الملفات والمجلدات.

ما هي أنواع أذونات الوصول الثلاثة التي تُمنح لكل ملف ومجلد في لينكس؟

  • قراءة, الكتابة, التنفيذ (correct)
  • قراءة, الكتابة, الحذف
  • قراءة, الكتابة, التعديل
  • قراءة, التحرير, التنفيذ

ما هي أنواع المستخدمين في لينكس؟

<p>هناك نوعان من المستخدمين في نظام التشغيل لينكس: المستخدم العادي، والمستخدم الفائق.</p> Signup and view all the answers

ما هو الغرض من المستخدم الفائق في لينكس؟

<p>المستخدم الفائق هو المسؤول عن إدارة النظام وإجراء تغييرات النظام.</p> Signup and view all the answers

ما هي أهمية المجموعات في نظام تشغيل لينكس؟

<p>تُمكننا المجموعات من إدارة أذونات الوصول إلى الملفات والمجلدات بطريقة أكثر كفاءةً.</p> Signup and view all the answers

ما هي أنواع المجموعات في لينكس؟

<p>المجموعة الأساسية، والمجموعة الثانوية (A)</p> Signup and view all the answers

ما هو الغرض من المجموعة الأساسية في لينكس؟

<p>تُستخدم المجموعة الأساسية عندما يتم إنشاء ملف أو مجلد جديد ليُصبح مالك المجموعة الأساسية.</p> Signup and view all the answers

ما هي أنواع أذونات الوصول الثلاثة في لينكس؟

<p>تُستخدم أذونات القراءة والكتابة والتنفيذ للتحكم في كيفية وصول المستخدمين إلى الملفات والمجلدات.</p> Signup and view all the answers

ما هو مفهوم “”الوضع"” في لينكس؟

<p>الوضع هو عبارة عن مجموعة من السمات التي تحدد كيفية الوصول إلى ملف أو مجلد.</p> Signup and view all the answers

ما هو الغرض من الأمر chmod في لينكس؟

<p>يُستخدم هذا الأمر لتعديل أذونات الوصول للملفات والمجلدات.</p> Signup and view all the answers

Flashcards

نظام متعدد الاستخدامات

نظام التشغيل لينكس يسمح لمستخدمين متعددين بالوصول إلى الكمبيوتر في نفس الوقت، مما يتطلب نظامًا لإدارة الوصول إلى الملفات والمجلدات.

إمكانيات الوصول (الأذونات)

تُستخدم إمكانيات الوصول (الأذونات) للتحكم في الوصول إلى الملفات والمجلدات من قبل الأفراد أو المجموعات.

مالك الملف

كل ملف أو مجلد له مالك (مستخدم) يُحدد من لديه حق الوصول الكامل إليه.

المجموعة

تُستخدم المجموعات لتجميع مستخدمين معًا وتُمنح حق الوصول إلى الملفات والمجلدات بشكل جماعي.

Signup and view all the flashcards

المجموعة الأولية

تُمنح المجموعة الأولية حق الوصول إلى الملفات والمجلدات عند إنشائها.

Signup and view all the flashcards

المجموعة الثانوية

تُستخدم المجموعات الثانوية لإدارة حق الوصول إلى ملفات أو أوامر محددة.

Signup and view all the flashcards

المستخدم الفائق (root)

الـ "Superuser" (المستخدم الفائق) أو "root" هو حساب خاص له حق الوصول الكامل إلى جميع موارد نظام لينكس.

Signup and view all the flashcards

المستخدم العادي

المستخدم العادي له حقوق محدودة للوصول إلى موارد النظام، اعتمادًا على إعدادات الأذونات لكل ملف ومجلد.

Signup and view all the flashcards

"r" (القراءة)

تُعرف "r" بـ "القراءة" (Read) وتسمح بالاطلاع على محتوى الملف أو عرض قائمة ملفات المجلد.

Signup and view all the flashcards

"w" (الكتابة)

تُعرف "w" بـ "الكتابة" (Write) وتسمح بتعديل محتوى الملف أو إضافة ملفات إلى المجلد.

Signup and view all the flashcards

"x" (التنفيذ)

تُعرف "x" بـ "التنفيذ" (Execute) وتسمح بتشغيل ملف تنفيذي أو تنفيذ أمر من المجلد.

Signup and view all the flashcards

"-" (غياب الأذونات)

تُعني "-" غياب الأذونات، أي عدم توفر حق الوصول "r", "w" أو "x".

Signup and view all the flashcards

أوامر التحكم في الوصول

يُمكن التحكم في حق الوصول إلى الملفات والمجلدات باستخدام الأوامر.

Signup and view all the flashcards

الأمر "ls -l"

يُمكن استخدام الأمر "ls -l" لعرض تفاصيل ملفات و مجلدات معينة، بما في ذلك إمكانيات الوصول.

Signup and view all the flashcards

الأمر "chown"

يُمكن استخدام الأمر "chown" لتغيير مالك ملف أو مجلد.

Signup and view all the flashcards

الأمر "chgrp"

يُمكن استخدام الأمر "chgrp" لتغيير مجموعة ملف أو مجلد.

Signup and view all the flashcards

الأمر "chmod"

يُمكن استخدام الأمر "chmod" لتعديل إمكانيات الوصول إلى ملف أو مجلد.

Signup and view all the flashcards

الأمر "sudo"

يُمكن استخدام الأمر "sudo" لتنفيذ أوامر بِصلاحيات المستخدم الفائق، دون الحاجة إلى تسجيل الدخول كـ "root".

Signup and view all the flashcards

الأمر "su"

يُمكن استخدام الأمر "su" للتبديل إلى حساب مستخدم آخر مؤقتًا، بما في ذلك حساب المستخدم الفائق.

Signup and view all the flashcards

الأمر "useradd"

يُمكن استخدام الأمر "useradd" لإنشاء مستخدم جديد.

Signup and view all the flashcards

الأمر "passwd"

يُمكن استخدام الأمر "passwd" لتغيير كلمة مرور المستخدم.

Signup and view all the flashcards

الأمر "userdel"

يُمكن استخدام الأمر "userdel" لحذف مستخدم موجود.

Signup and view all the flashcards

الأمر "groupadd"

يُمكن استخدام الأمر "groupadd" لإنشاء مجموعة مستخدمين جديدة.

Signup and view all the flashcards

الأمر "usermod"

يُمكن استخدام الأمر "usermod" لتعديل معلومات ملف تعريف المستخدم، مثل المجموعة الأولية، والمجموعات الثانوية، واسم المستخدم

Signup and view all the flashcards

الأمر "gpasswd"

يُمكن استخدام الأمر "gpasswd" لإدارة أعضاء المجموعة، بما في ذلك إضافة مستخدم أو حذفه من المجموعة.

Signup and view all the flashcards

الأمر "groupdel"

يُمكن استخدام الأمر "groupdel" لحذف مجموعة مستخدمين.

Signup and view all the flashcards

الأمر "w" أو "who"

يُمكن استخدام الأمر "w" أو "who" للتحقق من مستخدمي النظام المسجلين دخولًا.

Signup and view all the flashcards

الأمر "id" أو "groups"

يُمكن استخدام الأمر "id" أو "groups" للمعرفة بِهوية المستخدم والمجموعات التي ينتمي إليها.

Signup and view all the flashcards

الأمر "getent"

يُمكن استخدام الأمر "getent" لعرض معلومات عن المستخدمين أو المجموعات من قواعد البيانات.

Signup and view all the flashcards

Study Notes

Introduction to Operating Systems (SYST1)

  • This course is part of the National School of Cybersecurity's (NSCS) 1st Year Basic Training in Cyber Security (1BT) program for 2024/2025.
  • It's taught by Dr. Sassi Bentrad.
  • The course covers Users, Groups and Permissions Management (10%).

Chapter 6: Users, Groups, and Permissions Management

  • Linux is a multi-user operating system, meaning multiple users can use the computer simultaneously.
  • Access permissions are needed for directories and files.
  • Linux uses three access permissions for files and directories:
    • Owner (User)
    • Group
    • Other
  • Permissions are represented:
    • read (r)
    • write (w)
    • execute (x)
  • Absence of permission is denoted by a hyphen (-).
  • Permissions can be viewed using numerical or symbolic notations.
  • Different commands are used to manage users, groups, and permissions.

Owner Status

  • There are three owner statuses:
    • Owner: The user who created the file/directory.
    • Owner Group: The primary group of the owner.
    • Others: Users not in the owner group.
  • Commands like chown, chgrp, and chmod are used to manage owners, groups & permissions.

Permission (Access Mode)

  • Permissions depend on the owner status.
  • The ls -l command with the -l option displays permission information for files and directories.
  • Permissions can be expressed numerically (octal) or symbolically.

Meaning of File Permissions

  • Files are used to store data.
  • r (Read): View the contents.
  • w (Write): Change the contents.
  • x (Execute): Run the program or instructions for binary files.

Meaning of Directory Permissions

  • Directories are used to store files and directories.
  • r (Read): View the directory contents (files and subdirectories).
  • w (Write): Add, delete, or rename files within the directory
  • x (Execute): enter the directory.

Superuser (Root User) vs. Normal User

  • The superuser (root) has access to all system resources.
  • Normal users have limited access based on permission settings.
  • sudo is used to run commands with superuser privileges.
  • Different accounts (e.g., user_a, user_b) with varying permissions are part of a system.

sudo Command (Run Command with Superuser Privileges)

  • The sudo command allows normal users to run commands with superuser privileges.
  • sudoers are users with the necessary permissions to use sudo.

su (Switch User) Command

  • The su command is used to temporarily switch to another user, including the superuser (root).

useradd (Add User) Command

  • Used to create new user accounts.
  • Option -m automatically creates a home directory.

passwd (Set Password) Command

  • Used to set up or change a user's password.

userdel (Delete User) Command

  • Used to delete existing user accounts.
  • Option -r also deletes the user's home directory.

Primary Group and Secondary Group

  • Linux uses primary & secondary groups to manage user permissions.
  • Primary group: the default group a user belongs to.
  • Secondary group: additional group memberships for specified permissions
  • Commands like groupadd, usermod, and gpasswd manage these groups.

groupadd (Add Group) Command

  • Used to create new user groups.

usermod (Modify User Account Information)

  • Used to modify a user's profile (including primary group, secondary groups, etc.) .

gpasswd (Add and Delete Users to Group) Command

  • Used to add or remove users from groups.
  • Supports password management for groups.

groupdel (Delete Group) Command

  • Used to delete a group profile from the system.

chown (Change Owner of File and Directory) Command

  • Used to change the ownership of files or directories.

chgrp (Change Group of File and Directory) Command

  • Used to change the group ownership of files or directories

chmod (Change Access Mode) Command

  • Used to modify the access permissions of files and directories.
  • Symbolic and numerical methods are supported.

Check Current User Login Status (who and w command)

  • Used for showing who's currently logged in and what they are doing.

id and groups (Check User ID and Group) Commands

  • Used for checking the user ID and list of groups.

getent (Display User and Group Data) Command

  • Retrieves data from system databases on users and groups.

chmod Command with Numbers

  • Used to set permissions using numerical representations.
  • The command uses octal numbers (base-8) representing permissions.

Extended access permissions

  • Allows controlling access beyond basic rwx permissions.
  • Used for granular sharing control.
  • SUID & SGID bits affect how programs are executed and permission control.
  • Sticky bit is used in directories to restrict file renaming & deletion.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Use Quizgecko on...
Browser
Browser