Link to home
Start Free TrialLog in
Avatar of koffea
koffea

asked on

samba not sharing according to permissions

samba is not sharing according to file permission shares

example

-rwxrwx---   1 user1 everybody 130K Jun 17 11:47 notes1.pdf
-rwxrwx---+  1 user2  everybody  32K Jul 15 15:32 notes2.xls
-rwxrwx---+  1 user1 everybody  44K Jul 15 14:17 notes3.doc

everyone can access notes1
only user2 can access notes2
only user1 can access notes3

I am not exactly sure what that plus symbol means, but I suspect it is a part of the issue.

heres the samba config

[global]
        netbios name = FILE SERVER
        server string = FILE SERVER
        socket options = TCP_NODELAY
        unix password sync = yes
        workgroup = SERVER01
        os level = 20
        encrypt passwords = yes
        wins support = true
        domain master = yes
        map to guest = Bad User
        printcap name = /etc/printcap
        load printers = no
        printing =


[public]
        delete readonly = yes
        writeable = yes
        comment = public
        path = /sharedfolders/public
        force directory mode = 0770
        force group = everybody
        force create mode = 0770
        valid users = @everybody
        create mode = 0770
        directory mode = 0770

Avatar of Steven Vona
Steven Vona
Flag of United States of America image

The plus sign in Solaris and other UNIX systems means there is an ACL on the file.  
Try getfacl notes.xls on the command line and see what you get.
Sorry for the multiple posts:

man pages for getfacl and setfacl

GET:
http://pwet.fr/man/linux/commandes/getfacl

SET:
http://pwet.fr/man/linux/commandes/setfacl
Avatar of koffea
koffea

ASKER

this is what i get:

# file: notes2.xls
# owner: user2
# group: everybody
user::rwx
user:user3:rwx
group::---
mask::rwx
other::---

so it is not setting the acl correctly to allow the group?
Avatar of koffea

ASKER

so basically i have two options?

i could run the following command every 5 minutes:
setfacl -R -m g:everybody:rwx /sharedfolders/public/
 
or i could disable facl.  How do you disable facl?
ASKER CERTIFIED SOLUTION
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of koffea

ASKER

savone got me on the right track by explaining what the + symbol was, but did not offer a complete solution.