[samba-jp:23044] Re: SAMBA共有フォルダーへの読書き設定方法について

吉本 叡 satoshi_yoshimoto @ asahi-kakou.co.jp
2020年 3月 3日 (火) 16:19:49 JST


さとうふみやす 様

返信有難うございます。

下記で設定してみました。
謎部分が解消しました。

有難うございます!

------Original Message------
差出人:"SATOH Fumiyasu"<fumiyas @ osstech.co.jp>
宛先:"Sambaについての様々な質疑応答用"<samba-jp @ samba.gr.jp>
CC:
件名:[samba-jp:23043] Re: SAMBA共有フォルダーへの読書き設定方法について
日時:2020年03月03日(火) 15:49(+0900)
>さとうふみやす @ OSSTech です。
>
>On Tue, 03 Mar 2020 11:54:20 +0900,
>吉本 叡 wrote:
>> <やりたいこと>
>> 1:ファイル共有は読み取り専用
>> 2:ファイル共有にアクセスできるのは、 group01とgroup02
>> 3:ファイル共有に書き込みができるのは、 group01のみ
>
>```console
># chmod 02775 /home/share
># chgrp group01 /home/share
>```
>
>して smb.conf は以下のような感じでいいんじゃないだろうか。
>
>```ini
>[Share]
>comment = Share Folder for All Users
>path = /home/share/
>inherit permissions = yes
>browsable = yes
>read only = yes
>valid users = @group01 @group02
>write list = @group01
>```
>
>> <smb.conf [Share]セクションの設定>
>> [Share]
>> comment = Share Folder for All Users
>> path = /home/share/
>> browsable = yes
>> read only = yes
>> valid users = @group01 @group02
>> write list = @group01
>
>-- 
>-- Name: SATOH Fumiyasu @ OSS Technology Corp. (fumiyas @ osstech co jp)
>-- Business Home: https://www.OSSTech.co.jp/
>-- GitHub Home: https://GitHub.com/fumiyas/
>-- PGP Fingerprint: BBE1 A1C9 525A 292E 6729  CDEC ADC2 9DCA 5E1C CBCA



samba-jp メーリングリストの案内