[Pkg-samba-maint] Bug#408547: Office 2007 permissions stranger than
previously thought
Robin Edgar - Tripany
red at tripany.com
Mon Jan 29 17:33:52 CET 2007
So the situation now gets weirder the more I play with it:
If I use windows to create a file and a directory the permissions are
set properly:
machine:/export/home/here/test# ls -alp
total 12
drwxrwx--- 3 user group 4096 Jan 29 17:21 ./
drwxr-xr-x 28 root root 4096 Jan 29 17:20 ../
drwxrwx--- 2 user group 4096 Jan 29 17:21 testdir/
-rwxrwx--- 1 user group 0 Jan 29 17:21 testtxt.txt
When I create a word (or excel) document and save it, I get this:
machine:/export/home/here/test# ls -alp
total 28
drwxrwx--- 3 user group 4096 Jan 29 17:24 ./
drwxr-xr-x 28 root root 4096 Jan 29 17:20 ../
-r-------- 1 user group 10246 Jan 29 17:24 Testdoc.docx
drwxrwx--- 2 user group 4096 Jan 29 17:21 testdir/
-rwxrwx--- 1 user group 0 Jan 29 17:21 testtxt.txt
-rwxrwx--- 1 user group 162 Jan 29 17:24 ~$estdoc.docx
Note 2 things: the swapfile has the correct permissions, the .docx
doesn't.
If I chmod 770 the Testdoc.docx, then re-open and re-save it, the same
happens as above. HOWEVER!
If I chmod 777 Testdoc.docx, and then re-open and re-save I get these
permissions.
machine:/export/home/here/test# ls -alp
total 28
drwxrwx--- 3 user group 4096 Jan 29 17:28 ./
drwxr-xr-x 28 root root 4096 Jan 29 17:20 ../
-rwxrwxrwx 1 user group 10278 Jan 29 17:28 Testdoc.docx
drwxrwx--- 2 user group 4096 Jan 29 17:21 testdir/
-rwxrwx--- 1 user group 0 Jan 29 17:21 testtxt.txt
-rwxrwx--- 1 user group 162 Jan 29 17:27 ~$estdoc.docx
Not so strange, except create mask = 0770.
What really wierds me out is when I chmod 775 Testdoc.docx and re-edit
and save it:
machine:/export/home/here/test# ls -alp
total 28
drwxrwx--- 3 user group 4096 Jan 29 17:31 ./
drwxr-xr-x 28 root root 4096 Jan 29 17:20 ../
-r-xr-xr-x 1 user group 10322 Jan 29 17:31 Testdoc.docx
drwxrwx--- 2 user group 4096 Jan 29 17:21 testdir/
-rwxrwx--- 1 user group 0 Jan 29 17:21 testtxt.txt
-rwxrwx--- 1 user group 162 Jan 29 17:31 ~$estdoc.docx
Can anyone please explain this behaviour?!
More information about the Pkg-samba-maint
mailing list