6.16SDcard used |patriot 8g
Software title | (EG: Nextcloud)
dietpi-bugreport ID
@dynobot
Thanks for your report.
This is the expected behaviour since v6.16. We changed it to allow other software titles access the samba mount, e.g. music players to access shared music folder, downloaders to move their files into shared download folder and such.
Since root still has full access, this should not cause any issues, or do you face any related issue?
Yes the issue I am having is when I use MPD it can not access the files. MPD runs under user mpd and is only in the group 'audio'. When I run MPD as user dietpi, I have no problems accessing the files -but- myMPD points to user mpd running MPD. If you want to change samba-client to use dietpi instead of root then MPD needs to be in the same group. Looks like dietpi user does not share to 'all users' with permissions. BTW, I never had a problem sharing when root controlled the samba directories....root also had different permissions though, as it allowed read and execute permissions to all-users.
@dynobot
MPD runs under user mpd and is only in the group 'audio'
MPD needs to be in the same group
Ah, I see the issue.
🈴 Not an option /mnt/dietpi_userdata/.mpd_cache, needs RW and 777 could be death.
🈯️
G_CONFIG_INJECT '^group ' 'group "dietpi"' /etc/mpd.confdietpi-services restart@dynobot
Please try the above and let us know if this resolves the issue.
Okay that seemed to work. But how about giving dietpi the same permissions root had before?
Read and Execute privileges for all users.
That way all the other programs that might run under some 'other' user won't have this problem....just a thought.
@dynobot
Okay that seemed to work. But how about giving dietpi the same permissions root had before?
Would be nice, however, the issue is that dietpi-software installed software no longer runs as root (minus a few, eg: desktop). This is in an effort to increase "security" for our users.
So to allow access to networked dietpi-userdata, we must use the 'dietpi' group to ensure those programs can function:
https://dietpi.com/phpbb/viewtopic.php?f=11&t=4595#p14192
And samba doesnt support changing individual folder permissions, so this is the best solution we can provide at this time.
Okay then I guess dietpi it is...no worries.
Completed, resolved for v6.17.