Can a user be unable to delete files within a directory the user owns?Base permissions on a fat32 usb...
Which is better for keeping data: primary partition or logical partition?
How receiver knows the exact frequency in the channel to "listen to"?
Are all commands with an optional argument fragile?
Why wasn't EBCDIC designed with contiguous alphanumeric characters?
I need help with pasta
Is it okay to fade a human face just to create some space to place important content over it?
Do home values typically rise and fall at a consistent percent?
What will happen if I checked in for another room in the same hotel, but not for the booked one?
Can a stressful Wish's Strength reduction be cured early by a Greater Restoration spell?
What game is this character in the Pixels movie from?
How to properly say asset/assets in German
What do you call a notepad used to keep a record?
Is it okay to submit a paper from a master's thesis without informing the advisor?
The warming up game
Prime parity peregrination
What's the safest way to inform a new user of their password on an invite-only website?
How could a satellite follow earth around the sun while staying outside of earth's orbit?
Can a nowhere continuous function have a connected graph?
Find the radius of the hoop.
Could human civilization live 150 years in a nuclear-powered aircraft carrier colony without resorting to mass killing/ cannibalism?
Is Cyclic Ether oxidised by periodic acid
I just started should I accept a farewell lunch for a coworker I don't know?
Can I travel from Germany to England alone as an unaccompanied minor?
Security Patch SUPEE-11155 - Possible issues?
Can a user be unable to delete files within a directory the user owns?
Base permissions on a fat32 usb driveHow to check if a user can access a given file?How do I delete a file in a read-only directory?How to set up users, ownership and permissions across local and remote servers?Hard link permissions behavior different between CentOS 6 and CentOS 7Giving write permissions to www-data for a file within user's home with limited shell access?Permissions on Files:can't cd to or mkdir in directory, despite 777 permissionsWhy not allow all users to schedule jobs with crontabs?How to mount files as specific user when using docker namespace remapping?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Assuming root privileges are unavailable to user A and user B. Suppose user A makes directory C with 777 permissions and user B makes a folder in C called D with 755 permissions. Suppose user B makes a file in D called "troll" with 755 permissions.
What is the correct behavior if user A tries to run rm -rf on directory D? What about on the "troll" file?
I have just tested this on my machine and user A cannot delete user B's files. Is this correct? If so, does that mean user B could make a very large file in A's directory that A could not delete and thus exceed A's quota?
permissions
New contributor
add a comment |
Assuming root privileges are unavailable to user A and user B. Suppose user A makes directory C with 777 permissions and user B makes a folder in C called D with 755 permissions. Suppose user B makes a file in D called "troll" with 755 permissions.
What is the correct behavior if user A tries to run rm -rf on directory D? What about on the "troll" file?
I have just tested this on my machine and user A cannot delete user B's files. Is this correct? If so, does that mean user B could make a very large file in A's directory that A could not delete and thus exceed A's quota?
permissions
New contributor
If you tested it then whats the problem??
– somethingSomething
1 min ago
add a comment |
Assuming root privileges are unavailable to user A and user B. Suppose user A makes directory C with 777 permissions and user B makes a folder in C called D with 755 permissions. Suppose user B makes a file in D called "troll" with 755 permissions.
What is the correct behavior if user A tries to run rm -rf on directory D? What about on the "troll" file?
I have just tested this on my machine and user A cannot delete user B's files. Is this correct? If so, does that mean user B could make a very large file in A's directory that A could not delete and thus exceed A's quota?
permissions
New contributor
Assuming root privileges are unavailable to user A and user B. Suppose user A makes directory C with 777 permissions and user B makes a folder in C called D with 755 permissions. Suppose user B makes a file in D called "troll" with 755 permissions.
What is the correct behavior if user A tries to run rm -rf on directory D? What about on the "troll" file?
I have just tested this on my machine and user A cannot delete user B's files. Is this correct? If so, does that mean user B could make a very large file in A's directory that A could not delete and thus exceed A's quota?
permissions
permissions
New contributor
New contributor
New contributor
asked 24 mins ago
ViktorViktor
1
1
New contributor
New contributor
If you tested it then whats the problem??
– somethingSomething
1 min ago
add a comment |
If you tested it then whats the problem??
– somethingSomething
1 min ago
If you tested it then whats the problem??
– somethingSomething
1 min ago
If you tested it then whats the problem??
– somethingSomething
1 min ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Viktor is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f527148%2fcan-a-user-be-unable-to-delete-files-within-a-directory-the-user-owns%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Viktor is a new contributor. Be nice, and check out our Code of Conduct.
Viktor is a new contributor. Be nice, and check out our Code of Conduct.
Viktor is a new contributor. Be nice, and check out our Code of Conduct.
Viktor is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f527148%2fcan-a-user-be-unable-to-delete-files-within-a-directory-the-user-owns%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If you tested it then whats the problem??
– somethingSomething
1 min ago