Solved

samba not sharing according to permissions

Posted on 2009-07-15
7
4,882 Views
Last Modified: 2013-12-09
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

0
Comment
Question by:koffea
  • 4
  • 3
7 Comments
 
LVL 23

Expert Comment

by:savone
ID: 24864782
The plus sign in Solaris and other UNIX systems means there is an ACL on the file.  
0
 
LVL 23

Expert Comment

by:savone
ID: 24864788
Try getfacl notes.xls on the command line and see what you get.
0
 
LVL 23

Expert Comment

by:savone
ID: 24864796
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
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:koffea
ID: 24864895
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?
0
 

Author Comment

by:koffea
ID: 24870645
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?
0
 
LVL 23

Accepted Solution

by:
savone earned 500 total points
ID: 24870710
I am not well versed in ACLs, but I would assume you should be able to remove the ACL on the file and fix your problem.
0
 

Author Closing Comment

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

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
Over the past decade, as Internet security has become a chief concern of IT professionals, one of the most common questions administrators and users ask is, “Which is more secure, SFTP or FTPS?” In short, both file transfer protocols offer a high…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question