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.

Samba: Restrict access to certain sub-directory [solved]

Featured Replies

I want to restrict access from a user to certain sub-directories in a share.

My share is called "share1" and in that share I have directories labelled dir1, dir2, dir3. I have added users called "user1" and "user2" to Unraid. "user1" and "user2" are also Win10 usernames.

I want everyone including "user2" to have access to "share1", but only "user1" should have access to dir3.

I tried to google it and I tried setfacl, but it's not working.
 

Edited by lsaranto

I also wonder if this is possible, i guess if you use the cli and chown the permission to the folder there it would do the trick, but will it remain through reboots/unraid doing whatever it does to set permissions?

  • 3 months later...

same question for me ...

Why not just use user shares the way they are intended to be used? 

 

If you need different access for different files put them in different user shares. 

  • Author
4 hours ago, trurl said:

Why not just use user shares the way they are intended to be used? 

 

If you need different access for different files put them in different user shares. 

 

In my case, I needed to limit access to a directory that is a few levels down from the share top. Yes I could have moved it to its own share, but that is not its logical place.

 

I tried to use ACL but didn't have enough skillz. What I ended up doing, was that I made my user the owner of the directory with +rwx rights, I gave +w rights to group as a certain program needs to be able to write to that directory, and -rwx to other. This isn't perfect. I think, technically, the blocked user is able to write and delete files from the directory. But in my case it's enough to keep out family members who have never seen Linux.

Archived

This topic is now archived and is closed to further replies.

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.