Configure the permissions of/var/tmp/fstab

Configure the permissions of/var/tmp/fstab
Copy the file /etc/fstab to /var/tmp/fstab. Configure the permissions of/var/tmp/fstab so that:
the file /var/tmp/fstab is owned by the root user.
the file /var/tmp/fstab belongs to the group root.
the file /var/tmp/fstab should not be executable by anyone.
the user natasha is able to read and write /var/tmp/fstab.
the user harry can neither write nor read /var/tmp/fstab.
all other users (current or future) have the ability to read /var/tmp/fstab.
A. See explanation below.

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “Configure the permissions of/var/tmp/fstab

  1. file owner already root so do not execute the “chown root fstab” and “chgrp root fstab”

    setfacl -m u:natasha:rwx /var/tmp/fstab
    setfacl -m u:harry:— /var/tmp/fstab
    chmod 774 /var/tmp/fstab

    2
    1
  2. cp /etc/fstab /var/tmp
    cd /var/tmp
    chown root fstab
    chgrp root fstab
    chmod a-x fstab
    setfacl -m u:natasha:rw fstab
    setfacl -m u:harry:— fstab
    chmod o+r fstab

    6
    2

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.