Bug 5127 - OS X Leopard Connecting to linux Samba share - permission mask problem
Summary: OS X Leopard Connecting to linux Samba share - permission mask problem
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts (show other bugs)
Version: 3.0.27
Hardware: x64 Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-06 05:15 UTC by Wolfgang Kries
Modified: 2023-06-06 23:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Kries 2007-12-06 05:15:38 UTC
Hello,

I have a problem with the directory/file mask after upgrading to OS X leopard. The configuration of the share is:

[test]
        comment = Test-Daten
        path = /u1/data/test
        browseable = yes
        read only = no
        guest ok = no
        valid users = @TEST/testuser
        create mask = 0760
        directory mask = 0770
        delete veto files = yes
        hide dot files = no
        strict locking = yes
        dos filemode = yes
        force group = Domain Users
        force create mode = 0660
        force directory mode = 0770

Since I have upgraded to Leopard the permissions masks are not being honored when I work with the share using Finder. If I create a file or folder with Linux, Windows or OS X 10.4 that would have permissions like this:

-rw-rw----  1 wolfgang      domain users        326 Dec  6 12:01 index.rtf

The permissions with leopard on a new file are now like this:

-rw-r--r--  1 wolfgang      domain users        326 Dec  6 12:01 index.rtf

This only happens through Finder. If I connect to the share using smbclient and create a file or directory the permission mask is correctly applied. I connect to the share as a user with proper access to the remote filesystem and NOT as a guest user.

Kind regards, Wolfgang
Comment 1 Volker Lendecke 2007-12-06 13:17:42 UTC
You might want to try "unix extensions = no". Please tell us if this helps.

Volker
Comment 2 Wolfgang Kries 2007-12-07 04:34:26 UTC
Hello Volker,

it looks very good, now Leopard use the correct mask for file/directory creation.

Thanks for your help, Wolfgang



Comment 3 Wolfgang Kries 2007-12-07 04:40:09 UTC
sorry, my fault, the problem still exist.

The Finder copies the local permission to the share, regardless the setting for the mask in the samba config

kind regards, wolfgang




Comment 4 Volker Lendecke 2007-12-07 04:43:12 UTC
Please upload a full debug level 10 log of the smbd behaving incorrectly, with "unix extensions = no"

Volker
Comment 5 Wolfgang Kries 2007-12-07 05:16:11 UTC
hmmm, I believe rtfm is everytime a good tip. unix extensions is a global parameter, I use it as a lokal parameter in my share definition. Now I will test the behavior with unix extensions and will be back after testing.

Thanks for your patience, wolfgang