The problem is that force group = hc_shared
is no longer making it into the /var/etc/ksmbd/ksmbd.conf
config from the uci
config file. This worked for me in OpenWrt 21.02.
In the file /etc/config/ksmbd
I have, among other shares, the following:
config share
option name 'hc_shared'
option path 'hc_shared'
option read_only 'no'
option users 'user_a user_b'
option force_group 'hc_shared'
option guest_ok 'no'
option create_mask '0660'
option dir_mask '0770'
Which, in /var/etc/ksmbd/ksmbd.conf
translates into (notice the missing "force group"):
[hc_shared]
path = hc_shared
valid users = user_a user_b
create mask = 0660
directory mask = 0770
read only = no
guest ok = no
uci show ksmbd.@share[5]
returns:
ksmbd.cfg07b538=share
ksmbd.cfg07b538.name='hc_shared'
ksmbd.cfg07b538.path='hc_shared'
ksmbd.cfg07b538.read_only='no'
ksmbd.cfg07b538.users='user_a user_b'
ksmbd.cfg07b538.force_group='hc_shared'
ksmbd.cfg07b538.guest_ok='no'
ksmbd.cfg07b538.create_mask='0660'
ksmbd.cfg07b538.dir_mask='0770'
I'm running OpenWrt 23.05.2 on a Linksys WRT-1200AC.
I'd be inclined to think I'm doing something wrong, except this worked in 21.02. Is it my config? If it's not, is there a way I can force that one parameter through even if uci
doesn't want to?
Thank you,
Chris