Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Why execution permission is required for Samba sharing?

Featured Replies

Maybe it's too basic... I fixed the issue but just don't understand why.

 

I put my sharing folder to 644(chmod to grant only read/write permission to the owner, , just ignore later 2 bits) and use the exact same user to which I chown to access the Samba folder remotely. The issue appears that I can only see the first level parent folder content and can't navigate to the child folders. (On windows, it just return empty folders. On Mac, it reports permission deny explictly)

 

BTW, I have set the share to private in unraid and set the specific user have read/write permission(unraid permission,not linux) to the share.

 

Again I chmod all files to 755 by using chmod -R 755 *(Surely under the sharing folder), and the Samba sharing is OK now.

 

But why? Isn't that read and write permission(644, just ignore later 2 bits) enough? Why the execution bit is required to make SMB share functional?

Solved by Kilrah

  • Community Expert
  • Solution

Since a directory can't be executable the x bit is unneeded, and reused to allow/prevent access to the contents.

https://unix.stackexchange.com/a/21252

 

So while files are fine at 644 directories need the x bit set. 

Edited by Kilrah

  • Author
13 hours ago, Kilrah said:

Since a directory can't be executable the x bit is unneeded, and reused to allow/prevent access to the contents.

https://unix.stackexchange.com/a/21252

 

So while files are fine at 644 directories need the x bit set. 

Thank you. I learn something new. I have to admit that I new basic operation of linux but not detail.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.