โ† All 010-160 Flashcard Decks

System Security & User Permissions Flashcards

7 cards from real 010-160 practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 System Security & User Permissions flashcards as text
  1. Which /etc/passwd field specifies a user's home directory?

    Answer: Field 6

    Field 6 (the sixth colon-delimited field) in /etc/passwd specifies the user's home directory path.

  2. What does the `su -` command do differently than `su`?

    Answer: Starts a login shell that loads the target user's full environment

    `su -` (or `su -l`) starts a login shell, sourcing the target user's profile and environment variables.

  3. How can you allow a user to run only the `reboot` command with sudo without a password?

    Answer: Add 'username ALL=(ALL) NOPASSWD: /sbin/reboot' to /etc/sudoers

    A NOPASSWD rule in /etc/sudoers grants passwordless sudo access to a specific command.

  4. What is the UID of the root user on a standard Linux system?

    Answer: 0

    Root always has UID 0, which grants unrestricted access to the system.

  5. Which command removes a user account along with their home directory?

    Answer: userdel -r username

    `userdel -r username` deletes the user account and recursively removes their home directory and mail spool.

  6. What does a '.' in the second position of `ls -l` output indicate on SELinux-enabled systems?

    Answer: The file has an SELinux security context

    A '.' after the permission bits indicates an SELinux security context is applied to the file.

  7. Which command displays all currently logged-in users and their active processes?

    Answer: w

    `w` shows who is logged in plus what each user is currently running, along with system load.