LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-20-2006, 01:03 AM   #1
digi691
LQ Newbie
 
Registered: Aug 2004
Location: Chicago
Posts: 17

Rep: Reputation: 0
Question 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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM
creating groups, adding users, and setting permissions bowie101 Linux - Newbie 2 11-23-2005 12:42 PM
SAMBA says 'Samba Server is not accebile, you might have no permissions' Ahmad Gurchani Linux - General 1 01-01-2005 10:34 AM
Adding samba users aroop Linux - Networking 2 06-07-2004 11:24 PM
Adding user permissions bcf2 Linux - Newbie 3 11-01-2003 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration