Solved

Samba Share Permissions Issue on NAS

Posted on 2009-07-02
3
590 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
ID: 24767520
About create mode, try: force create mode = 0775
0
 
LVL 20

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

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.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

772 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