Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Samba Share Permissions Issue on NAS

Posted on 2009-07-02
3
Medium Priority
?
604 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Expert Comment

by:dainok
ID: 24767520
About create mode, try: force create mode = 0775
0
 
LVL 21

Expert Comment

by:Daniel McAllister
ID: 24772922
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
ID: 24772991
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

730 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