例えば以下のディレクトリの場合
1 2 |
# ls -ld /var/www/html/nextcloud/data drwxrwx--- 35 www-data www-data 4096 May 9 11:23 /var/www/html/nextcloud/data |
smb.confにこのようにforce user, force groupを指定する
1 2 3 4 5 6 7 8 9 10 |
[nextcloud] path = /var/www/html/nextcloud/data browsable = yes writable = yes guest ok = yes guest only = yes read only = no #valid users = www-data force user = www-data force group = www-data |