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.

Recommened secure ZFS permissions? CHMOD?

Featured Replies

Hi everyone,

 

I have a ZFS array that I am sharing out via Settings->SMB:

 

[myFiles]
path=/mnt/myFiles
browseable = yes
public = no
guest ok = no
writeable = yes
read only = no
valid users = user1 user2

 

Due to some foolishness, when attempting to get user2 access to the myFiles share, a "chmod -R 777 /mnt/myFiles" was run.  Of course this provides wide open access including execute permissions.  This is not desirable for a  number of security reasons.

 

Can you please advise what updated CHMOD should be run to set permissions on these files to a more appropriate level for a file share?  I'm thinking to run CHMOD against the entire '/mnt/myFiles' share, as 99% of the files are simply static files that users will need R/W access to.  For the small number of files that will need execute rights, I can go an manually CHMOD those specific files.

 

So, would CHMOD 666 be the recommended value, or perhaps 660?  The 'myFiles' share does not contain any VMs, Dockers, or Docker data.  It is strictly a file repository.

 

Thanks everyone,

Cal.

 

  • Community Expert

Basically doesn't matter for a data share, executing files would require having a shell to the server, having a shell to the server can only be done as root, and root would have all permissions anyway.

  • 2 weeks later...
  • Author

Thanks @Kilrah.  What about securing RW access to the files?

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.