Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 300-300 Topic 5 Question 20 Discussion

Actual exam question for LPI's 300-300 exam
Question #: 20
Topic #: 5
[All 300-300 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: E

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.


Samba smb.conf man page - create mask

Contribute your Thoughts:

Kassandra
2 months ago
I bet the answer is 751. The create mask of 711 allows the owner full permissions, and the force create mode of 750 sets the final permissions. Easy peasy!
upvoted 0 times
Daniela
30 days ago
I agree, the create mask and force create mode settings determine the final permissions.
upvoted 0 times
...
Ruthann
1 months ago
I think the answer is 751.
upvoted 0 times
...
...
An
2 months ago
Ha! Looks like someone's trying to trick us with these Samba settings. I'll go with C) 777 - can't fool me with your fancy 'create mask' and 'force create mode'!
upvoted 0 times
...
Brett
2 months ago
C) 777 is the correct answer. The create mask and force create mode settings only apply to newly created files, not existing ones with 777 permissions.
upvoted 0 times
Nohemi
27 days ago
D) 761
upvoted 0 times
...
Micaela
1 months ago
C) 777 is the correct answer. The create mask and force create mode settings only apply to newly created files, not existing ones with 777 permissions.
upvoted 0 times
...
Hubert
1 months ago
B) 027
upvoted 0 times
...
Dexter
2 months ago
A) 066
upvoted 0 times
...
...
Ming
2 months ago
I'm not sure, but I think it's 761 because of the create mask and force create mode settings.
upvoted 0 times
...
Shawna
2 months ago
I believe it would be 751.
upvoted 0 times
...
Bulah
2 months ago
I think the answer is D) 761. The create mask of 711 allows read, write, and execute for the owner, and the force create mode of 750 sets the final permissions.
upvoted 0 times
Theresia
1 months ago
Oh, I see. Thanks for clarifying!
upvoted 0 times
...
Stevie
1 months ago
Actually, it's A) 066.
upvoted 0 times
...
Josphine
2 months ago
No, I think it's E) 751.
upvoted 0 times
...
Cassie
2 months ago
I believe the answer is D) 761.
upvoted 0 times
...
...
Ashlyn
2 months ago
I think the effective permissions would be 761.
upvoted 0 times
...
Skye
3 months ago
The effective permissions should be 751, since the create mask overrides the initial 777 permissions.
upvoted 0 times
Miesha
2 months ago
E) 751
upvoted 0 times
...
Gilberto
2 months ago
D) 761
upvoted 0 times
...
Regenia
2 months ago
C) 777
upvoted 0 times
...
Youlanda
2 months ago
B) 027
upvoted 0 times
...
Mabelle
2 months ago
A) 066
upvoted 0 times
...
...

Save Cancel