New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 300-300 Exam - 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:

0/2000 characters
Eura
3 months ago
I thought it would be 777 since that's the original!
upvoted 0 times
...
Heike
3 months ago
Nope, definitely 750.
upvoted 0 times
...
Merrilee
3 months ago
Wait, are you sure it's not 761?
upvoted 0 times
...
Gracia
4 months ago
Totally agree, 750 makes sense here.
upvoted 0 times
...
Karl
4 months ago
The effective permissions will be 750.
upvoted 0 times
...
Franklyn
4 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.
upvoted 0 times
...
Harris
4 months ago
This reminds me of a practice question where we had to calculate effective permissions, and I think the answer was something like 751.
upvoted 0 times
...
Paris
4 months 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.
upvoted 0 times
...
Thora
5 months ago
I remember that the create mask sets the maximum permissions, but I'm not sure how the force create mode interacts with it.
upvoted 0 times
...
Cortney
5 months 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.
upvoted 0 times
...
Izetta
5 months 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.
upvoted 0 times
...
Nickole
5 months 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.
upvoted 0 times
...
Kris
5 months 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.
upvoted 0 times
...
Arlette
5 months 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.
upvoted 0 times
...
Kassandra
1 year 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
1 year ago
I agree, the create mask and force create mode settings determine the final permissions.
upvoted 0 times
...
Ruthann
1 year ago
I think the answer is 751.
upvoted 0 times
...
...
An
1 year 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
1 year 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
1 year ago
D) 761
upvoted 0 times
...
Micaela
1 year 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 year ago
B) 027
upvoted 0 times
...
Dexter
1 year ago
A) 066
upvoted 0 times
...
...
Ming
1 year 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
1 year ago
I believe it would be 751.
upvoted 0 times
...
Bulah
1 year 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 year ago
Oh, I see. Thanks for clarifying!
upvoted 0 times
...
Stevie
1 year ago
Actually, it's A) 066.
upvoted 0 times
...
Josphine
1 year ago
No, I think it's E) 751.
upvoted 0 times
...
Cassie
1 year ago
I believe the answer is D) 761.
upvoted 0 times
...
...
Ashlyn
1 year ago
I think the effective permissions would be 761.
upvoted 0 times
...
Skye
1 year ago
The effective permissions should be 751, since the create mask overrides the initial 777 permissions.
upvoted 0 times
Miesha
1 year ago
E) 751
upvoted 0 times
...
Gilberto
1 year ago
D) 761
upvoted 0 times
...
Regenia
1 year ago
C) 777
upvoted 0 times
...
Youlanda
1 year ago
B) 027
upvoted 0 times
...
Mabelle
1 year ago
A) 066
upvoted 0 times
...
...

Save Cancel