Solved

Samba Share Permissions Issue on NAS

Posted on 2009-07-02
3
594 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Storage DRS Recommendation Alert 3 67
Large File Sharing For Business 7 40
How to create SAN for end users 9 48
list of sudo access for date range 5 29
I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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…
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.

820 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