[Samba] Renaming a directory on samba >= 3.5.2 changes group-permissions of these

Heinz Hölzl heinz.hoelzl at gvcc.net
Thu Jan 12 08:12:15 MST 2012


hi list!



Renaming a directory on samba >= 3.5.2 changes group-permissions of these.
Renaming files works fine.
(tested with samba 3.5.2, 3.5.3, 3.5.4 and 3.6.1.  -  samba version <= 3.5.1
works fine)

To reproduce do the following:
- create a directory named "newdir" and change it's permissions to 750
- then rename it to "renameddir"
- now the permissions are 770

in detail:

pagh:/ # smbclient -V
Version 3.6.1

pagh:/ # ls -dl /samba/sys/user/apl/newdir
drwxr-x--- 2 xxxxx users 4096 2012-01-04 11:20 /samba/sys/user/apl/newdir

pagh:/ # smbclient //pagh.klingons.net/sys -k -D /user/apl -c "rename 
newdir renameddir"
Domain=[KLINGONS.NET] OS=[Unix] Server=[Samba 3.6.1]

pagh:/ # ls -dl /samba/sys/user/apl/renameddir
drwxrwx--- 2 xxxxx users 4096 2012-01-04 11:20 
/samba/sys/user/apl/renameddir


..... downgrade to samba 3.5.0 .....

pagh:/ # smbclient -V
Version 3.5.0

pagh:/ # ls -dl /samba/sys/user/apl/newdir
drwxr-x--- 2 xxxxx users 4096 2012-01-04 11:20 /samba/sys/user/apl/newdir

pagh:/ # smbclient //pagh.klingons.net/sys -k -D /user/apl -c "rename 
newdir renameddir"
Domain=[KLINGONS.NET] OS=[Unix] Server=[Samba 3.5.0]

pagh:/ # ls -dl /samba/sys/user/apl/renameddir
drwxr-x--- 2 xxxxx users 4096 2012-01-04 11:20 
/samba/sys/user/apl/renameddir


is this a bug ?

Thanks.
heinz





More information about the samba mailing list