Solved

Samba Share Permissions Issue on NAS

Posted on 2009-07-02
3
586 Views
Last Modified: 2013-12-02
Using a Linksys NSS6000 we've had multiple issues when using the admin share so we can see all the shares.

- First, when mounted, it shows only having 128KB of space.

- Second, all files are created with permissions 766 even though their share create masks show as 0776.

Below is the code for the admin shares and one of the shares in question. The quicker the better!
[storage]

comment=Adminstrative Share of NAS Storage

browseable=no

writable=yes

admin users=admin

path=/mnt

create mask=0776

veto files=/.config/

delete veto files=yes
 

[marketing]

path=/mnt/RAIDA/storage/marketing

comment=Marketing & New Business

browseable=yes

write list="@employees","@partners"

admin users=admin

create mask=0777

directory mode=0777

force directory mode=0

read only=no

public=no

available=yes

Open in new window

0
Comment
Question by:bluecc
3 Comments
 
LVL 5

Expert Comment

by:dainok
Comment Utility
About create mode, try: force create mode = 0775
0
 
LVL 20

Expert Comment

by:Daniel McAllister
Comment Utility
Also, understand that "force directory mode=0" will effectively deny directory creation (users can create them, but then will have no permissions). The "force directory mode=0" will override your "directory mode=0777" (which should be "directory mask", but it's OK because Samba will take either).

Along with dainok's example (change "create mask=0776" to "force create mode=0775"), that should resolve some of your issues.

... BUT: If this is TRULY an "admin only" share, why not use:

force user=admin
force create mode=0700

???

Just my 2-cents worth...

Dan
IT4SOHO

0
 

Accepted Solution

by:
bluecc earned 0 total points
Comment Utility
Dan,

Linksys calls it an admin only share but we're actually intending to have the users map it so they can see all shares. Then they can only access the shares they have rights to.

I'll give your suggestion a shot!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now