Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Samba Share Permissions Issue on NAS

Posted on 2009-07-02
3
Medium Priority
?
607 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The question appears often enough, how do I transfer my data from my old server to the new server while preserving file shares, share permissions, and NTFS permisions.  Here are my tips for handling such a transfer.
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month7 days, 17 hours left to enroll

824 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