# 「J0106: ディレクトリのパーミッションが勝手に変更される」に関連して、 # ディレクトリの所有車の書き込み権が常についてしまうのを抑止する patch # です。 # ただし、コメントに # We never make directories read only for the owner as under DOS a user # can always create a file in a read-only directory. # と書かれているので、何らかの弊害があるかもしれません。 # # 適用は、以下のようにして行ってください #------------------------------------------- #cd source #patch -p1 < somewhere/samba-2.0.10-ja-1.2_dir_readonly.patch #------------------------------------------- --- source/smbd/dosmode.c.org Fri May 4 04:11:44 2001 +++ source/smbd/dosmode.c Sun Dec 9 15:33:20 2001 @@ -74,7 +74,7 @@ if (IS_DOS_DIR(dosmode)) { /* We never make directories read only for the owner as under DOS a user can always create a file in a read-only directory. */ - result |= (S_IFDIR | S_IWUSR); + result |= (S_IFDIR); if (dir_mode) { /* Inherit mode of parent directory. */