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.

customizing samba options for usershares

Featured Replies

Hi there - searched briefly, but I haven't been able to find anything here, so I'm sorry if I'm repeating an old topic.

 

Is there a way to set a "default" set of smb options for the user shares? I have been battling a problem with file ownership and permissions on my box (mostly to do with files I put on there and allowing sickbeard to manipulate them). When I copy a file to a share on the server through my user account, it is owned by my account, and has the default permissions. I would like all files added to the server to be owned by nobody (the sickbeard user), and have the permissions 666. I managed to do this through a custom share by adding the following lines to the config in smb-extra.conf. 

  force create mode = 0666
  force directory mode = 0777
  force user = nobody
  force group = users
  create mask = 0666

 

I tried to do the same to the user share config in /etc/samba/smb-shares.conf, but as soon as I try and restart network sharing through the web gui, it overwrites the file and my changes are erased. Is there a way to add config entries to the user shares that won't get blown away?

 

Cheers,

whiteatom

  • Author

Managed to solve my own problem.. just had to think about it a bit differently. Instead of modifying the user share smb conf.. I added a [Global] section to the smb-extra.conf. For those interested:

 

To force a user and permissions on all files copied to all shares on your box, add the following lines to /boot/config/smb-extra.conf

 

[Global]

  force create mode = 0666

  force directory mode = 0777

  force user = nobody

  force group = users

  create mask = 0666

 

I would still be interested in a better solution so that I can control this user share by user share. I could see a "Custom SMB Config" field in the share settings section being very useful in the future.

 

Cheers,

 

whiteatom

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.