LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba adding unwanted permissions (https://www.linuxquestions.org/questions/linux-networking-3/samba-adding-unwanted-permissions-446607/)

digi691 05-20-2006 01:03 AM

Samba adding unwanted permissions
 
I really am baffled about this one. Everytime I create a file using windows on my Samba share it will create permissions I do not want. I want the permissions of every file or folder to be 770. So essentially it should look like this -rwxrwx--- (For a file), and drwxrwx--- (For a directory). When I use the command directory mask = 0770 I get the correct permissions when windows creates a folder. No matter if I use the option force create mode = 0770, force create mode = 1770, create mask = 0770, and create mask = 1770 do I get the correct permissions.

Here is my smb.conf
Code:

[global]
        workgroup = MSHOME
        server string = Samba Server
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins support = Yes

[Share]
        path = /mnt/share/Music
        force group = share
        read only = No
        force create mode = 0770
        directory mask = 0770

Now here is what happens when I create a file.
Code:

[chris@BlackIce ~]$ ls -la /mnt/share/Music/SMBTEST/
total 5
drwxrwx---    2 chris share  80 2006-05-19 20:01 .
drwxrwx---  175 root  share 5576 2006-05-19 20:01 ..
-rwxrwxr--    1 chris share    0 2006-05-19 20:01 FileTest.txt

I don't understand where the read is coming from for everyone else?.? Really stumped...


All times are GMT -5. The time now is 09:19 AM.