LoginSignup
3
6

More than 5 years have passed since last update.

CentOS7 SELinux 有効下でのsambaの設定

Posted at

SELinux有効のままsambaによる書き込み(=共有先からの読み書き)をONになるよう
設定した時のメモ

①samba をインストール
②smb.confを編集
③SELinuxの設定を変更
setsebool -P allow_smbd_anon_write=on
setsebool -P samba_enable_home_dirs=on
setsebool -P samba_share_nfs=on
setsebool -P samba_export_all_rw=on
④ラベル設定
chcon -R -t public_content_rw_t /home/.../.... < dirは環境に合わせて

これで共有先(私の場合はWindows7 Pro)から読み書き可能になりました。

3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6