Cannot access shared folder (samba) Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!Samba log in Guest always askedSamba Permissions - I'm going to throw it!Can Samba “security = user” be used for guest share without Windows login prompt?Can't access samba share over VPNSamba Ignoring POSIX ACLsWhy is samba unable to access a folder once something is mounted to it?Samba Displaying Folders as FilesAD Authentication with SAMBA, Winbind and SSSSamba, hosts allow = .example.comSAMBA, CIFS, message signing, confusion
What was the first language to use conditional keywords?
What is this clumpy 20-30cm high yellow-flowered plant?
Take 2! Is this homebrew Lady of Pain warlock patron balanced?
Generate an RGB colour grid
Why do we bend a book to keep it straight?
What would you call this weird metallic apparatus that allows you to lift people?
Effects on objects due to a brief relocation of massive amounts of mass
Time to Settle Down!
How to write the following sign?
Project Euler #1 in C++
What is a fractional matching?
Denied boarding although I have proper visa and documentation. To whom should I make a complaint?
Are all finite dimensional hilbert spaces isomorphic to spaces with Euclidean norms?
How fail-safe is nr as stop bytes?
Why aren't air breathing engines used as small first stages?
How does the math work when buying airline miles?
How can I reduce the gap between left and right of cdot with a macro?
Is there a kind of relay only consumes power when switching?
How to react to hostile behavior from a senior developer?
Most bit efficient text communication method?
Do any jurisdictions seriously consider reclassifying social media websites as publishers?
AppleTVs create a chatty alternate WiFi network
Is there any word for a place full of confusion?
What's the meaning of "fortified infraction restraint"?
Cannot access shared folder (samba)
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Samba log in Guest always askedSamba Permissions - I'm going to throw it!Can Samba “security = user” be used for guest share without Windows login prompt?Can't access samba share over VPNSamba Ignoring POSIX ACLsWhy is samba unable to access a folder once something is mounted to it?Samba Displaying Folders as FilesAD Authentication with SAMBA, Winbind and SSSSamba, hosts allow = .example.comSAMBA, CIFS, message signing, confusion
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a Linux server (Linux1) where I have already configured folders to be shared out. It runs on RHEL 7.2. The configuration of my /etc/samba/smb.conf is as follows:
[sharing]
path = /home/share
guest ok = yes
browseable = yes
read only = no
Everything was working fine, I can access all the subfolders and files in the shared folder from my other Linux server (Linux2). The shared folder was previously mounted as cifs as /mnt/share.
I then restarted Linux1, disabled my firewall, and restarted the smb service.
From Linux2, I can see my shared folder and the subfolders, but when I tried to ls into a subfolder, it says ls: reading directory /mnt/share/subfolder: Permission denied.
I don't understand why this isn't working now.
permissions samba network-share
add a comment |
I have a Linux server (Linux1) where I have already configured folders to be shared out. It runs on RHEL 7.2. The configuration of my /etc/samba/smb.conf is as follows:
[sharing]
path = /home/share
guest ok = yes
browseable = yes
read only = no
Everything was working fine, I can access all the subfolders and files in the shared folder from my other Linux server (Linux2). The shared folder was previously mounted as cifs as /mnt/share.
I then restarted Linux1, disabled my firewall, and restarted the smb service.
From Linux2, I can see my shared folder and the subfolders, but when I tried to ls into a subfolder, it says ls: reading directory /mnt/share/subfolder: Permission denied.
I don't understand why this isn't working now.
permissions samba network-share
add a comment |
I have a Linux server (Linux1) where I have already configured folders to be shared out. It runs on RHEL 7.2. The configuration of my /etc/samba/smb.conf is as follows:
[sharing]
path = /home/share
guest ok = yes
browseable = yes
read only = no
Everything was working fine, I can access all the subfolders and files in the shared folder from my other Linux server (Linux2). The shared folder was previously mounted as cifs as /mnt/share.
I then restarted Linux1, disabled my firewall, and restarted the smb service.
From Linux2, I can see my shared folder and the subfolders, but when I tried to ls into a subfolder, it says ls: reading directory /mnt/share/subfolder: Permission denied.
I don't understand why this isn't working now.
permissions samba network-share
I have a Linux server (Linux1) where I have already configured folders to be shared out. It runs on RHEL 7.2. The configuration of my /etc/samba/smb.conf is as follows:
[sharing]
path = /home/share
guest ok = yes
browseable = yes
read only = no
Everything was working fine, I can access all the subfolders and files in the shared folder from my other Linux server (Linux2). The shared folder was previously mounted as cifs as /mnt/share.
I then restarted Linux1, disabled my firewall, and restarted the smb service.
From Linux2, I can see my shared folder and the subfolders, but when I tried to ls into a subfolder, it says ls: reading directory /mnt/share/subfolder: Permission denied.
I don't understand why this isn't working now.
permissions samba network-share
permissions samba network-share
asked Dec 21 '18 at 3:32
RayneRayne
14619
14619
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
I just realized that my SELinux was set to Enforcing on Linux1, and that was causing the permissions issue. After disabling it, I was able to access the subfolders and files again.
add a comment |
You should not disable SELinux. A better idea would be to change the SELinux settings to allow access to your shares.
Running something like chcon -t samba_share_t /home/share should do the trick.
add a comment |
Instead of disabling selinux set the proper boolean and security context values as follows. (I assume "sharing" is samba share name)
setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
getsebool -a | grep samba_export
semanage fcontext -at samba_share_t "/sharing(/.*)?"
restorecon /sharing
Also you may need to add some rules to allow traffic for samba.
firewall-cmd --permanent --add-service=samba
firewall-cmd --reload
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
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%2fserverfault.com%2fquestions%2f946220%2fcannot-access-shared-folder-samba%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I just realized that my SELinux was set to Enforcing on Linux1, and that was causing the permissions issue. After disabling it, I was able to access the subfolders and files again.
add a comment |
I just realized that my SELinux was set to Enforcing on Linux1, and that was causing the permissions issue. After disabling it, I was able to access the subfolders and files again.
add a comment |
I just realized that my SELinux was set to Enforcing on Linux1, and that was causing the permissions issue. After disabling it, I was able to access the subfolders and files again.
I just realized that my SELinux was set to Enforcing on Linux1, and that was causing the permissions issue. After disabling it, I was able to access the subfolders and files again.
answered Dec 21 '18 at 3:45
RayneRayne
14619
14619
add a comment |
add a comment |
You should not disable SELinux. A better idea would be to change the SELinux settings to allow access to your shares.
Running something like chcon -t samba_share_t /home/share should do the trick.
add a comment |
You should not disable SELinux. A better idea would be to change the SELinux settings to allow access to your shares.
Running something like chcon -t samba_share_t /home/share should do the trick.
add a comment |
You should not disable SELinux. A better idea would be to change the SELinux settings to allow access to your shares.
Running something like chcon -t samba_share_t /home/share should do the trick.
You should not disable SELinux. A better idea would be to change the SELinux settings to allow access to your shares.
Running something like chcon -t samba_share_t /home/share should do the trick.
answered Dec 21 '18 at 3:54
StringersStringers
146
146
add a comment |
add a comment |
Instead of disabling selinux set the proper boolean and security context values as follows. (I assume "sharing" is samba share name)
setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
getsebool -a | grep samba_export
semanage fcontext -at samba_share_t "/sharing(/.*)?"
restorecon /sharing
Also you may need to add some rules to allow traffic for samba.
firewall-cmd --permanent --add-service=samba
firewall-cmd --reload
add a comment |
Instead of disabling selinux set the proper boolean and security context values as follows. (I assume "sharing" is samba share name)
setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
getsebool -a | grep samba_export
semanage fcontext -at samba_share_t "/sharing(/.*)?"
restorecon /sharing
Also you may need to add some rules to allow traffic for samba.
firewall-cmd --permanent --add-service=samba
firewall-cmd --reload
add a comment |
Instead of disabling selinux set the proper boolean and security context values as follows. (I assume "sharing" is samba share name)
setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
getsebool -a | grep samba_export
semanage fcontext -at samba_share_t "/sharing(/.*)?"
restorecon /sharing
Also you may need to add some rules to allow traffic for samba.
firewall-cmd --permanent --add-service=samba
firewall-cmd --reload
Instead of disabling selinux set the proper boolean and security context values as follows. (I assume "sharing" is samba share name)
setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
getsebool -a | grep samba_export
semanage fcontext -at samba_share_t "/sharing(/.*)?"
restorecon /sharing
Also you may need to add some rules to allow traffic for samba.
firewall-cmd --permanent --add-service=samba
firewall-cmd --reload
edited Apr 12 at 20:40
Community♦
1
1
answered Dec 21 '18 at 7:52
Vaibhav PanmandVaibhav Panmand
761411
761411
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- 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%2fserverfault.com%2fquestions%2f946220%2fcannot-access-shared-folder-samba%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