samba permissions mystery ?



OK dumb hacker here ...

So I have samba running, my umask is 077, ie if I touch test I get ...
-rw-------

the samba share is actualy held in
/export/samba/windows

with [global]

# Max permissions for a share
create mode = 770
directory mode = 770

the samba mount point for this share is
/mnt/windows

and its mounted via smbfs with fmask=0770 and dmask=0770

##################################################

dave@dave-desktop:/mnt/windows$ touch test
dave@dave-desktop:/mnt/windows$ ls -al
total 8
drwxrwx--- 1 dave dave 4096 2007-06-27 21:45 .
drwxrwx--- 5 root dave 4096 2007-06-27 21:41 ..
-rwxrwx--- 1 dave dave 0 2007-06-27 21:50 test
dave@dave-desktop:/mnt/windows$

OK permissions as expected on mounted side :) - they are fixed rigid
by the smbfs mount fmask & dmask.

oot@dave-desktop:/export/samba/windows# ls -al
total 8
drwxrwx--- 2 root smbwindows 4096 2007-06-27 21:50 .
drwxrwxrwx 5 root root 4096 2007-06-27 21:29 ..
-rwxrw---- 1 dave dave 0 2007-06-27 21:50 test
root@dave-desktop:/export/samba/windows#

But strange on the share side, why a group RW ?

dave@dave-desktop:/mnt/windows$ chmod a-x test
dave@dave-desktop:/mnt/windows$ ls -al
total 8
drwxrwx--- 1 dave dave 4096 2007-06-27 21:45 .
drwxrwx--- 5 root dave 4096 2007-06-27 21:41 ..
-rwxrwx--- 1 dave dave 0 2007-06-27 21:50 test
dave@dave-desktop:/mnt/windows$

OK permissions as expected on mounted side :) - they are fixed by the
smbfs mount fmask & dmask.

root@dave-desktop:/export/samba/windows# ls -al
total 8
drwxrwx--- 2 root smbwindows 4096 2007-06-27 21:50 .
drwxrwxrwx 5 root root 4096 2007-06-27 21:29 ..
-rwxrw---- 1 dave dave 0 2007-06-27 21:50 test
root@dave-desktop:/export/samba/windows#

But strange on the share side, why is there still a user X, should
have gone. there are no force create / directories modes in smb.conf

I am a little confused

can anyone enlighten me ?

Cheers

Dave








--

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: samba permissions mystery ?
    ... So I have samba running, my umask is 077, ie if I touch test I get ... ... OK permissions as expected on mounted side:) - they are fixed rigid ... by the smbfs mount fmask & dmask. ...
    (Ubuntu)
  • Re: Changing groups
    ... pleaderb, sue, frank, ed are members of group projectb ... Everyone is a member of group user. ... depending on the file's permissions they can read and write the ... I do this all the time, using Samba. ...
    (Debian-User)
  • Re: [SLE] Samba
    ... Double check your permissions of /home and /home/group on your box. ... If it is a default samba install you are ... >>>I have samba set up and can see the Windows machine but can not write to ... I try to change the permisions on the Suse machine's /mnt point but>>>they stay the same. ...
    (SuSE)
  • Re: SMB Permissions
    ... I'd sure like the shares to get auto-mounted. ... However, I run into tons of permissions problems when I create a file, ... How do I implement a "guest" account? ... group that will be able to read the files Samba is going to share. ...
    (Fedora)
  • Re: Still cant network Linux and Windows
    ... Windows box, can only read them, and just changing the Linux ... Samba if you want access using that method. ...
    (comp.protocols.smb)