Thank you Gary  for the help.

On 12-12-12 09:45 AM, Gary Dale wrote:
If you want the CIFS permissions to be set correctly, use the Samba/CIFS
tools to set them (ie. set them from the client. Don't set them using
Unix permissions on the server).

I don't know if I'm doing it correct. I'm using a bash script to help user mount the CIFS share like this:

sudo mount.cifs //fileserver/management/ ${HOME}/fileserver/management -o user=${USER},password=$userPass,uid=$UID,rw,mand

Could you give me an example on using Samba/CIFS tools?




Your example shows you setting the group to managegroup but your
smb.conf forces the group to management. Which is it?

my typo. I want make clear so I change the group name to managegroup. The actual group name it the same "managment" which I think may cause confusion when I post my question. Sorry.

Bets Regards.

Gao



The last line in your server commands I believe should be chmod, not chowm.


On 12/12/12 12:21 PM, J Gao wrote:
Hi, All,

I'm having a problem with my samba server(v3.6.9) setup. I have a
share on the server:

#cd /
#mkdir managment
#chown -R root:managegroup management
#chowm -R 2770 management

When I test this I found out:
the managegroup member can create new file/dir with the correct
permission: -rwxrws--- or drwxrws---

BUT, when the client copy a file or dir to the share from his local
drive, then some file/dir will have different the permission when it
coiped to the Samba share. (for example, drwxrwxr-x)

We have both Windows and Ubuntu client. Ubuntu client use cifs.mount
to access the Samba share.

Here is my smb.conf file. Please help me. All I want is when and file
and/or dir end up on the samba share, it should have 770 permission.

Thanks.

Gao


my smb.conf:
============================================
[global]
        workgroup = WORKGROUP
        server string = My File Server
        interfaces = lo bond0 192.168.1.2/24
        hosts allow = 127. 192.168.1.
        log file = /var/log/samba/log.%m
        max log size = 1000
        security = user
        passdb backend = tdbsam
        guest account = nobody
        map to guest = Bad User
        wins support = yes
        dns proxy = no
        map acl inherit = yes
        nt acl support = yes
        load printers = no
        printing = bsd
        printcap name = /dev/null
        disable spoolss = yes
        create mask = 0770
        force security mode = 0770
        force create mode = 0770
        directory mask = 0770
        force directory mode = 0770

[Management]
    comment =
        path = /management
        browsable = yes
        public = no
        writable = yes
        read only = no
        force group = management
        valid users = @management

========================================




--

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to