Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 300-300 Exam - Topic 5 Question 20 Discussion

Posted by Jaclyn on Nov 17, 2024 at 06:52 AM

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?

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

Get Premium 300-300 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
37 comments · newest first
EU
Eura 11 months ago
I thought it would be 777 since that's the original!
HE
Heike 11 months ago
Nope, definitely 750.
ME
Merrilee 11 months ago
Wait, are you sure it's not 761?
GR
Gracia 12 months ago
Totally agree, 750 makes sense here.
KA
Karl 12 months ago
The effective permissions will be 750.
FR
Franklyn 12 months ago
I feel like I might be mixing up the create mask and force create mode; I hope I remember correctly that they both affect the final permissions.
HA
Harris 1 year ago
This reminds me of a practice question where we had to calculate effective permissions, and I think the answer was something like 751.
PA
Paris 1 year ago
I think the effective permissions would be the result of both settings, but I can't recall if they override each other or work together.
TH
Thora 1 year ago
I remember that the create mask sets the maximum permissions, but I'm not sure how the force create mode interacts with it.
CO
Cortney 1 year ago
Hmm, I'm not totally sure about this one. I think the effective permissions will be 761, but I'm not 100% confident. I'll need to review the Samba documentation to be sure.
IZ
Izetta 1 year ago
I've got this! The create mask of 711 means the user, group, and other permissions will be set to 1 (execute). And the force create mode of 750 means the final permissions will be 750, regardless of the initial 777.
NI
Nickole 1 year ago
I'm a bit confused here. The question says the file was created with 777 permissions, but the Samba settings seem to override that. I'll need to double-check my understanding of how these settings work.
KR
Kris 1 year ago
Okay, let me break this down step-by-step. The create mask is 711, and the force create mode is 750. So the effective permissions should be the intersection of those, which is 750.
AR
Arlette 1 year ago
Hmm, this looks tricky. I'll need to carefully think through how the Samba file share configuration parameters interact with the initial file permissions.
KA
Kassandra 2 years 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!
DA
Daniela 2 years ago
↳ replying to Kassandra
I agree, the create mask and force create mode settings determine the final permissions.
RU
Ruthann 2 years ago
↳ replying to Kassandra
I think the answer is 751.
AN
An 2 years 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'!
BR
Brett 2 years 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.
NO
Nohemi 2 years ago
↳ replying to Brett
D) 761
MI
Micaela 2 years ago
↳ replying to Brett
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.
HU
Hubert 2 years ago
↳ replying to Brett
B) 027
DE
Dexter 2 years ago
↳ replying to Brett
A) 066
MI
Ming 2 years ago
I'm not sure, but I think it's 761 because of the create mask and force create mode settings.
SH
Shawna 2 years ago
I believe it would be 751.
BU
Bulah 2 years 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.
TH
Theresia 2 years ago
↳ replying to Bulah
Oh, I see. Thanks for clarifying!
ST
Stevie 2 years ago
↳ replying to Bulah
Actually, it's A) 066.
JO
Josphine 2 years ago
↳ replying to Bulah
No, I think it's E) 751.
CA
Cassie 2 years ago
↳ replying to Bulah
I believe the answer is D) 761.
AS
Ashlyn 2 years ago
I think the effective permissions would be 761.
SK
Skye 2 years ago
The effective permissions should be 751, since the create mask overrides the initial 777 permissions.
MI
Miesha 2 years ago
↳ replying to Skye
E) 751
GI
Gilberto 2 years ago
↳ replying to Skye
D) 761
RE
Regenia 2 years ago
↳ replying to Skye
C) 777
YO
Youlanda 2 years ago
↳ replying to Skye
B) 027
MA
Mabelle 2 years ago
↳ replying to Skye
A) 066
0/2000 characters

Save Cancel