Heinz Hölzl
2012-Feb-14 08:22 UTC
[Samba] rpoblem: after renaming a directory permissions are changed
hi i have a directory with permissions 750 wenn i rename a directory, samba changes the permissions to 770. can everybody confirm this? what is wrong? Regards, Heinz Version 3.5.11 smb.conf: [global] server string = %h server (Samba, Ubuntu) map to guest = Bad User obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . unix password sync = Yes syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 dns proxy = No usershare allow guests = Yes panic action = /usr/share/samba/panic-action %d [sys] path = /samba read only = No directory mask = 0770 inherit acls = Yes
TAKAHASHI Motonobu
2012-Feb-19 07:56 UTC
[Samba] rpoblem: after renaming a directory permissions are changed
From: Heinz_H?lzl <heinz.hoelzl at gvcc.net> Date: Tue, 14 Feb 2012 09:22:25 +0100> i have a directory with permissions 750 > wenn i rename a directory, samba changes the permissions to 770. > > can everybody confirm this? what is wrong?> [sys] > path = /samba > read only = No > directory mask = 0770 > inherit acls = YesI re-produced your issue at my lab. You set "directory mask = 0770" at "sys". "directory mask" or such parameters is applied not only when creating directories but when manuplating directories. --- TAKAHASHI Motonobu <monyo at samba.gr.jp>
Heinz Hölzl
2012-Feb-20 08:45 UTC
[Samba] rpoblem: after renaming a directory permissions are changed
Am 19.02.2012 08:56, schrieb TAKAHASHI Motonobu:> From: Heinz_H?lzl <heinz.hoelzl at gvcc.net> Date: Tue, 14 Feb 2012 > 09:22:25 +0100 >> i have a directory with permissions 750 wenn i rename a directory, >> samba changes the permissions to 770. can everybody confirm this? >> what is wrong? [sys] path = /samba read only = No directory mask = >> 0770 inherit acls = Yes > I re-produced your issue at my lab. You set "directory mask = 0770" at > "sys". "directory mask" or such parameters is applied not only when > creating directories but when manuplating directories. --- TAKAHASHI > Motonobu <monyo at samba.gr.jp>hi, I tested this with all samba versions from 3.5.0 to 3.6.3. with versions <= 3.5.1 directory mask was applied ONLY on creating directories. since 3.5.2 something is different. But, in the samba-releasenotes i cant find changes reguarding the "directory mask" . Also the manpages from the differnt versions are identical. man smb.conf (samba 3.6.3): directory mask: This parameter is the octal modes which are used when converting DOS modes to UNIX modes when "CREATING" UNIX directories.
Heinz Hölzl
2012-May-02 13:05 UTC
[Samba] rpoblem: after renaming a directory permissions are changed
i have this problem only if the owner of the directory renames the directory. if someone else renames the directory, everything works fine Am 14.02.2012 09:22, schrieb Heinz H?lzl:> hi > > i have a directory with permissions 750 > wenn i rename a directory, samba changes the permissions to 770. > > can everybody confirm this? what is wrong? > > > Regards, > Heinz > > > > Version 3.5.11 > smb.conf: > [global] > server string = %h server (Samba, Ubuntu) > map to guest = Bad User > obey pam restrictions = Yes > pam password change = Yes > passwd program = /usr/bin/passwd %u > passwd chat = *Enter\snew\s*\spassword:* %n\n > *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . > unix password sync = Yes > syslog = 0 > log file = /var/log/samba/log.%m > max log size = 1000 > dns proxy = No > usershare allow guests = Yes > panic action = /usr/share/samba/panic-action %d > > [sys] > path = /samba > read only = No > directory mask = 0770 > inherit acls = Yes >