Jump to content

Export entire array (or users folder) as a share


Go to solution Solved by JorgeB,

Recommended Posts

Is there a way to export the entire users folder as a share so that I can have all my shares visible as a single network drive/network place in windows?
Tried searching but didn't see anything about this as an option.

Rather than have each individual share as a separate network drive I'd like to have them all collected under a single mapped drive on my PC.

Link to comment

you can edit the smb config manuly to add this share..
 

 

using the user script plugin.

 

add the share at bottom of smb config...

 

#
#======================= Global Settings =====================================
[global]

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
#       this line.  The included file is read at that point.
;include = /usr/local/samba/lib/smb.conf.%m

#UnRaid Default Configurable Identification

netbios name = %hostname% #change me
server string = VM - Docker Server
hide dot files = no
server multi channel support = yes
max open files = 40960
multicast dns register = No
disable netbios = No
local master = yes
os level = 200
security = USER
workgroup = WORKGROUP
map to guest = Bad User
passdb backend = smbpasswd
;null passwords = Yes
idmap config * : backend = tdb
idmap config * : range = 3000-7999
create mask = 0777
directory mask = 0777
bind interfaces only = yes
;interfaces = 192.168.1.254 127.0.0.1

# log stuff only to syslog
logging = syslog@0

# we don't do printers
show add printer wizard = No
disable spoolss = Yes
load printers = No
printing = bsd
printcap name = /dev/null

# disable aio by default
aio read size = 0
aio write size = 0

# misc.
#invalid users = root
unix extensions = No
wide links = Yes
use sendfile = Yes
host msdfs = No

# ease upgrades from Samba 3.6
acl allow execute always = Yes

#========Other Settings that should be set

#Security:
ntlm auth = ntlmv1-permitted
server min protocol = SMB2

#Domain/AD Server Settings
local master = yes
dns proxy = no
preferred master = yes
server role = standalone server
name resolve order = host wins lmhosts bcast
winbind request timeout = 5
server signing = auto
strict locking = no

#File Path / share Settings
follow symlinks = yes
guest account = nobody
guest ok = Yes
map hidden = Yes
map system = Yes

case sensitive = True
default case = lower
preserve case = yes
short preserve case = yes

#Apple SMB2 samba File Settings
fruit:encoding = native
fruit:zero_file_id = false
fruit:nfs_aces = false
fruit:nfs_aces = No
rpc_server:mdssvc = disabled
rpc_daemon:mdssd = disabled
fruit:encoding = native
fruit:time machine max size = 0 #Unlimted
fruit:time machine = True
fruit:resource = stream
fruit:metadata = stream
vfs objects = catia fruit streams_xattr

#Performance tuning
smbd max xattr size = 2097152
#posix locking = No
read raw = yes
write raw = yes
use sendfile = Yes
#min receivefile size = 16384
#aio read size = 16384
#aio write size = 16384

[global]
        # hook for unassigned devices shares
        include = /etc/samba/smb-unassigned.conf

        # auto-configured shares
        include = /etc/samba/smb-shares.conf

######### Manual Shares
[unraid]
        case sensitive = Auto
        comment = full array share
        path = /mnt/user/
        read only = No
        fruit:encoding = native

 

Edited by bmartino1
Link to comment

this is why the extras smb exisits.

 

image.thumb.png.01b435570eb775400afb4224d2522fa3.png

 

array has to be off to edit.

 

[unraid]
        case sensitive = Auto
        comment = full array share
        path = /mnt/user/
        read only = No
        fruit:encoding = native

 

The array must be started for this to work, which is why I recommend running a manual smb config. to guarantee a smooth startup with out errors.

Edited by bmartino1
Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...