5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Samba] Windows側から作成したファイルやディレクトリの所有者を指定する

Posted at

動機

何も指定しないと、nobodyユーザーになるので、Webから操作するために、apacheユーザーに変更したかった。

作業

smb.confにおいて、force userforce groupで指定する。

smb.conf

[test]
        path = /path/to/test

        force user = apache

        force group = apache
;以下おまけ        
        read only = No

        create mask = 0777

        force create mode = 0777

        directory mask = 0777

        force directory mode = 0777

        guest ok = Yes

        browseable = No

5
5
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
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?