Windows can access one shared folder but not another (ubuntu 18.04, w7)
On a new install of Ubuntu (budgie 18.04) I shared the Public folder and set permissions to allow guest access and to create and delete (using the sharing GUI). A networked Windows computer now has access.
I shared another folder (on an external drive, ext4) using the same settings. Windows sees it but says permission denied. Checking permissions with stat -c "%a %n" /path/to/folder shows the same permissions on Public and "test" (the name of the new shared folder).
Exploring further, checking access for user "nobody", sudo -u nobody ls ~/Public lists the files in Public but, trying the new shared folder, sudo -u nobody ls /path/to/test returns permission denied. Going up the path through the root of the external drive and /media/user also gets permission denied. But /sudo -u nobody ls /media succeeds, listing the files in /media.
So it looks like user nobody is blocked in the path ahead of the directory "test". What's wanted is a simple, one step method (I figured the GUI would do this, but evidently not or not always) to share a network folder and allow guest access.
Is this a Samba thing or a permission thing?
Thanks for your time.
networking permissions samba file-sharing
add a comment |
On a new install of Ubuntu (budgie 18.04) I shared the Public folder and set permissions to allow guest access and to create and delete (using the sharing GUI). A networked Windows computer now has access.
I shared another folder (on an external drive, ext4) using the same settings. Windows sees it but says permission denied. Checking permissions with stat -c "%a %n" /path/to/folder shows the same permissions on Public and "test" (the name of the new shared folder).
Exploring further, checking access for user "nobody", sudo -u nobody ls ~/Public lists the files in Public but, trying the new shared folder, sudo -u nobody ls /path/to/test returns permission denied. Going up the path through the root of the external drive and /media/user also gets permission denied. But /sudo -u nobody ls /media succeeds, listing the files in /media.
So it looks like user nobody is blocked in the path ahead of the directory "test". What's wanted is a simple, one step method (I figured the GUI would do this, but evidently not or not always) to share a network folder and allow guest access.
Is this a Samba thing or a permission thing?
Thanks for your time.
networking permissions samba file-sharing
add a comment |
On a new install of Ubuntu (budgie 18.04) I shared the Public folder and set permissions to allow guest access and to create and delete (using the sharing GUI). A networked Windows computer now has access.
I shared another folder (on an external drive, ext4) using the same settings. Windows sees it but says permission denied. Checking permissions with stat -c "%a %n" /path/to/folder shows the same permissions on Public and "test" (the name of the new shared folder).
Exploring further, checking access for user "nobody", sudo -u nobody ls ~/Public lists the files in Public but, trying the new shared folder, sudo -u nobody ls /path/to/test returns permission denied. Going up the path through the root of the external drive and /media/user also gets permission denied. But /sudo -u nobody ls /media succeeds, listing the files in /media.
So it looks like user nobody is blocked in the path ahead of the directory "test". What's wanted is a simple, one step method (I figured the GUI would do this, but evidently not or not always) to share a network folder and allow guest access.
Is this a Samba thing or a permission thing?
Thanks for your time.
networking permissions samba file-sharing
On a new install of Ubuntu (budgie 18.04) I shared the Public folder and set permissions to allow guest access and to create and delete (using the sharing GUI). A networked Windows computer now has access.
I shared another folder (on an external drive, ext4) using the same settings. Windows sees it but says permission denied. Checking permissions with stat -c "%a %n" /path/to/folder shows the same permissions on Public and "test" (the name of the new shared folder).
Exploring further, checking access for user "nobody", sudo -u nobody ls ~/Public lists the files in Public but, trying the new shared folder, sudo -u nobody ls /path/to/test returns permission denied. Going up the path through the root of the external drive and /media/user also gets permission denied. But /sudo -u nobody ls /media succeeds, listing the files in /media.
So it looks like user nobody is blocked in the path ahead of the directory "test". What's wanted is a simple, one step method (I figured the GUI would do this, but evidently not or not always) to share a network folder and allow guest access.
Is this a Samba thing or a permission thing?
Thanks for your time.
networking permissions samba file-sharing
networking permissions samba file-sharing
asked yesterday
Twelve KanawTwelve Kanaw
12
12
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Your external partition is mounting to /media/$USER/XXX. Linux ( not samba ) permits only $USER the ability to traverse /media/$USER folder to get to the XXX folder. THe remote guest user is not $USER so although the permissions on XXX allow everyone access no access is allowed by Linux.
Since all your shares allow guest access and since you are uing the file manager to create shares I would suggest making the remote user look like you - at least for those shares:
** Edit /etc/samba/smb.conf
** Right under the workgroup = WORKGROUP line add this one:
force user = morbius
Change morbius to your own Linux login user name.
** Then restart smbd:
sudo service smbd restart
add a comment |
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
});
}
});
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%2f1123516%2fwindows-can-access-one-shared-folder-but-not-another-ubuntu-18-04-w7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your external partition is mounting to /media/$USER/XXX. Linux ( not samba ) permits only $USER the ability to traverse /media/$USER folder to get to the XXX folder. THe remote guest user is not $USER so although the permissions on XXX allow everyone access no access is allowed by Linux.
Since all your shares allow guest access and since you are uing the file manager to create shares I would suggest making the remote user look like you - at least for those shares:
** Edit /etc/samba/smb.conf
** Right under the workgroup = WORKGROUP line add this one:
force user = morbius
Change morbius to your own Linux login user name.
** Then restart smbd:
sudo service smbd restart
add a comment |
Your external partition is mounting to /media/$USER/XXX. Linux ( not samba ) permits only $USER the ability to traverse /media/$USER folder to get to the XXX folder. THe remote guest user is not $USER so although the permissions on XXX allow everyone access no access is allowed by Linux.
Since all your shares allow guest access and since you are uing the file manager to create shares I would suggest making the remote user look like you - at least for those shares:
** Edit /etc/samba/smb.conf
** Right under the workgroup = WORKGROUP line add this one:
force user = morbius
Change morbius to your own Linux login user name.
** Then restart smbd:
sudo service smbd restart
add a comment |
Your external partition is mounting to /media/$USER/XXX. Linux ( not samba ) permits only $USER the ability to traverse /media/$USER folder to get to the XXX folder. THe remote guest user is not $USER so although the permissions on XXX allow everyone access no access is allowed by Linux.
Since all your shares allow guest access and since you are uing the file manager to create shares I would suggest making the remote user look like you - at least for those shares:
** Edit /etc/samba/smb.conf
** Right under the workgroup = WORKGROUP line add this one:
force user = morbius
Change morbius to your own Linux login user name.
** Then restart smbd:
sudo service smbd restart
Your external partition is mounting to /media/$USER/XXX. Linux ( not samba ) permits only $USER the ability to traverse /media/$USER folder to get to the XXX folder. THe remote guest user is not $USER so although the permissions on XXX allow everyone access no access is allowed by Linux.
Since all your shares allow guest access and since you are uing the file manager to create shares I would suggest making the remote user look like you - at least for those shares:
** Edit /etc/samba/smb.conf
** Right under the workgroup = WORKGROUP line add this one:
force user = morbius
Change morbius to your own Linux login user name.
** Then restart smbd:
sudo service smbd restart
answered 10 hours ago
Morbius1Morbius1
1,481138
1,481138
add a comment |
add a comment |
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.
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%2f1123516%2fwindows-can-access-one-shared-folder-but-not-another-ubuntu-18-04-w7%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