nerdexam
LPI

300-300 · Question #54

In case the following parameters are set in a Samba file share configuration: create mask = 711 force create mode = 750 What are the effective permissions of a file created with the permissions 777?

The correct answer is E. 751. The effective permissions of a file created with the permissions 777 can be calculated considering the create mask and force create mode. create mask = 711 implies that the permission bits are ANDed with 0711, i.e., only the owner can read, write, and execute. force create mode…

300.4 File Sharing

Question

In case the following parameters are set in a Samba file share configuration: create mask = 711 force create mode = 750 What are the effective permissions of a file created with the permissions 777?

Options

  • A066
  • B027
  • C777
  • D761
  • E751

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    9% (2)
  • D
    23% (5)
  • E
    64% (14)

Explanation

The effective permissions of a file created with the permissions 777 can be calculated considering the create mask and force create mode. create mask = 711 implies that the permission bits are ANDed with 0711, i.e., only the owner can read, write, and execute. force create mode = 750 implies that certain permission bits are always set, specifically 0750, i.e., read, write, and execute for the owner, and read and execute for the group. The create mask reduces the permissions to 0711, and then force create mode adds the 0750 mask to the result. Original permission: 777 AND with create mask (711): 711 OR with force create mode (750): 751 Thus, the effective permission is 751.

Topics

#create mask#force create mode#file permissions#Samba share config

Community Discussion

No community discussion yet for this question.

Full 300-300 Practice