How to give Permission two users for a share folder. One can read, write, delete and other can read write but...
1
- share folder name All
- Two user: user1 and user2
- Both of share same folder and user1 can read,write,delete but user2- read,write remove permit to delete.
getent passwd jahid3--
jahid3:x:1001:100:for delete:/ALL8:/bin/sh
getent passwd jahid4--
jahid4:x:1002:100:Not for delete:/ALL8:/bin/sh
[jahid@all7 ~]
cut -d: -f1,3-4; ls -ld
drwxrwxr-t 5 jahid3 sambashare 4096 Dec 22 22:16 .
16.04 server samba users
|
show 2 more comments
1
- share folder name All
- Two user: user1 and user2
- Both of share same folder and user1 can read,write,delete but user2- read,write remove permit to delete.
getent passwd jahid3--
jahid3:x:1001:100:for delete:/ALL8:/bin/sh
getent passwd jahid4--
jahid4:x:1002:100:Not for delete:/ALL8:/bin/sh
[jahid@all7 ~]
cut -d: -f1,3-4; ls -ld
drwxrwxr-t 5 jahid3 sambashare 4096 Dec 22 22:16 .
16.04 server samba users
"delete" permission is affected by the parent directory's permission. Are these users in the same group?
– waltinator
Dec 22 '18 at 14:35
I can create two different group. but can they share same share folder two different rule. Same work i create in windows 2012 server. but in linux i can't
– user1845453
Dec 22 '18 at 14:46
Please Edit askubuntu.com/posts/1103808/edit your post, and show us the results of these commands:(getent passwd user1;getent passwd user2) | cut -d: -f1,3-4; ls -ld All
– waltinator
Dec 22 '18 at 18:50
When you say "write" for user2, do you mean edit existing files, or create new files? I don't think you'll be able to allow a user to create a file but not remove a file.
– glenn jackman
Dec 22 '18 at 19:30
@glenn jackman ## "Yes not remove or delete file"
– user1845453
Dec 25 '18 at 13:35
|
show 2 more comments
1
1
1
- share folder name All
- Two user: user1 and user2
- Both of share same folder and user1 can read,write,delete but user2- read,write remove permit to delete.
getent passwd jahid3--
jahid3:x:1001:100:for delete:/ALL8:/bin/sh
getent passwd jahid4--
jahid4:x:1002:100:Not for delete:/ALL8:/bin/sh
[jahid@all7 ~]
cut -d: -f1,3-4; ls -ld
drwxrwxr-t 5 jahid3 sambashare 4096 Dec 22 22:16 .
16.04 server samba users
- share folder name All
- Two user: user1 and user2
- Both of share same folder and user1 can read,write,delete but user2- read,write remove permit to delete.
getent passwd jahid3--
jahid3:x:1001:100:for delete:/ALL8:/bin/sh
getent passwd jahid4--
jahid4:x:1002:100:Not for delete:/ALL8:/bin/sh
[jahid@all7 ~]
cut -d: -f1,3-4; ls -ld
drwxrwxr-t 5 jahid3 sambashare 4096 Dec 22 22:16 .
16.04 server samba users
16.04 server samba users
edited Jan 22 at 12:38
vidarlo
10.4k52447
10.4k52447
asked Dec 22 '18 at 14:32
user1845453user1845453
64
64
"delete" permission is affected by the parent directory's permission. Are these users in the same group?
– waltinator
Dec 22 '18 at 14:35
I can create two different group. but can they share same share folder two different rule. Same work i create in windows 2012 server. but in linux i can't
– user1845453
Dec 22 '18 at 14:46
Please Edit askubuntu.com/posts/1103808/edit your post, and show us the results of these commands:(getent passwd user1;getent passwd user2) | cut -d: -f1,3-4; ls -ld All
– waltinator
Dec 22 '18 at 18:50
When you say "write" for user2, do you mean edit existing files, or create new files? I don't think you'll be able to allow a user to create a file but not remove a file.
– glenn jackman
Dec 22 '18 at 19:30
@glenn jackman ## "Yes not remove or delete file"
– user1845453
Dec 25 '18 at 13:35
|
show 2 more comments
"delete" permission is affected by the parent directory's permission. Are these users in the same group?
– waltinator
Dec 22 '18 at 14:35
I can create two different group. but can they share same share folder two different rule. Same work i create in windows 2012 server. but in linux i can't
– user1845453
Dec 22 '18 at 14:46
Please Edit askubuntu.com/posts/1103808/edit your post, and show us the results of these commands:(getent passwd user1;getent passwd user2) | cut -d: -f1,3-4; ls -ld All
– waltinator
Dec 22 '18 at 18:50
When you say "write" for user2, do you mean edit existing files, or create new files? I don't think you'll be able to allow a user to create a file but not remove a file.
– glenn jackman
Dec 22 '18 at 19:30
@glenn jackman ## "Yes not remove or delete file"
– user1845453
Dec 25 '18 at 13:35
"delete" permission is affected by the parent directory's permission. Are these users in the same group?
– waltinator
Dec 22 '18 at 14:35
"delete" permission is affected by the parent directory's permission. Are these users in the same group?
– waltinator
Dec 22 '18 at 14:35
I can create two different group. but can they share same share folder two different rule. Same work i create in windows 2012 server. but in linux i can't
– user1845453
Dec 22 '18 at 14:46
I can create two different group. but can they share same share folder two different rule. Same work i create in windows 2012 server. but in linux i can't
– user1845453
Dec 22 '18 at 14:46
Please Edit askubuntu.com/posts/1103808/edit your post, and show us the results of these commands:
(getent passwd user1;getent passwd user2) | cut -d: -f1,3-4; ls -ld All
– waltinator
Dec 22 '18 at 18:50
Please Edit askubuntu.com/posts/1103808/edit your post, and show us the results of these commands:
(getent passwd user1;getent passwd user2) | cut -d: -f1,3-4; ls -ld All
– waltinator
Dec 22 '18 at 18:50
When you say "write" for user2, do you mean edit existing files, or create new files? I don't think you'll be able to allow a user to create a file but not remove a file.
– glenn jackman
Dec 22 '18 at 19:30
When you say "write" for user2, do you mean edit existing files, or create new files? I don't think you'll be able to allow a user to create a file but not remove a file.
– glenn jackman
Dec 22 '18 at 19:30
@glenn jackman ## "Yes not remove or delete file"
– user1845453
Dec 25 '18 at 13:35
@glenn jackman ## "Yes not remove or delete file"
– user1845453
Dec 25 '18 at 13:35
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});
}
});
draft saved
draft discarded
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%2faskubuntu.com%2fquestions%2f1103808%2fhow-to-give-permission-two-users-for-a-share-folder-one-can-read-write-delete%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
draft saved
draft discarded
Thanks for contributing an answer to Ask Ubuntu!
- 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.
draft saved
draft discarded
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%2faskubuntu.com%2fquestions%2f1103808%2fhow-to-give-permission-two-users-for-a-share-folder-one-can-read-write-delete%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
"delete" permission is affected by the parent directory's permission. Are these users in the same group?
– waltinator
Dec 22 '18 at 14:35
I can create two different group. but can they share same share folder two different rule. Same work i create in windows 2012 server. but in linux i can't
– user1845453
Dec 22 '18 at 14:46
Please Edit askubuntu.com/posts/1103808/edit your post, and show us the results of these commands:
(getent passwd user1;getent passwd user2) | cut -d: -f1,3-4; ls -ld All
– waltinator
Dec 22 '18 at 18:50
When you say "write" for user2, do you mean edit existing files, or create new files? I don't think you'll be able to allow a user to create a file but not remove a file.
– glenn jackman
Dec 22 '18 at 19:30
@glenn jackman ## "Yes not remove or delete file"
– user1845453
Dec 25 '18 at 13:35