LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-06-2013, 02:34 PM   #1
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS 6, CentOS 7
Posts: 299

Rep: Reputation: Disabled
Samba groupmap permissions problems


I am having a problem getting Samba groupmaps to work correctly, can anyone see what I am doing wrong?

We have a Win 2012 Domain Controller with user 'Nick' who is a member of the Windows group "Samba Users".

On the Linux side there is a "samba" group which is mapped to the Windows "Samba Users" group.:
net groupmap add ntgroup="Samba Users" unixgroup=samba

I then create a samba share on the linux box:
//SambaSvr/WinShare
Owner=root, Group=samba, permissions=0770

Accessing this from Windows as user Nick fails with lack of permissions problem. If I change the permissions on the share to 0777 then I can read/write to it.

Problem is even doing this any files or directories written are created with user=Nick & Group="domain admins".

What am I doing wrong here?
 
Old 03-13-2014, 04:02 PM   #2
Bruce from Canada
Member
 
Registered: Feb 2012
Location: Greater Montreal, QC, Canada (Eastern NA time zone as NYC)
Distribution: Fedora, multiple versions
Posts: 56
Blog Entries: 2

Rep: Reputation: Disabled
ntgroup, Samba

It is possible that the name "Samba Users" is having trouble because of the caps and spaces. You might have to rename the whole group as "sambausers" or samba_users".

In many programming areas I see this issue, because the underlying code does not seem able to accept many "illegal characters" which it may also be using in the background to do other things.

I have also seen this type of problem in LibreOffice, especially in regard to Section names and spreadsheet formulae.

It is so easy to forget that these are really "dumb machines"

This may not be the ultimate answer, however it may be a part of the broken chains.

Tally-ho,

Bruce from Canada

Quote:
Originally Posted by Nick_C View Post
I am having a problem getting Samba groupmaps to work correctly, can anyone see what I am doing wrong?

We have a Win 2012 Domain Controller with user 'Nick' who is a member of the Windows group "Samba Users".

On the Linux side there is a "samba" group which is mapped to the Windows "Samba Users" group.:
net groupmap add ntgroup="Samba Users" unixgroup=samba

I then create a samba share on the linux box:
//SambaSvr/WinShare
Owner=root, Group=samba, permissions=0770

Accessing this from Windows as user Nick fails with lack of permissions problem. If I change the permissions on the share to 0777 then I can read/write to it.

Problem is even doing this any files or directories written are created with user=Nick & Group="domain admins".

What am I doing wrong here?
 
  


Reply

Tags
samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with permissions on mounted samba shares veeruk101 Linux - Newbie 1 09-08-2012 09:45 AM
Samba permissions problems transmogrifox Linux - Software 5 01-17-2009 05:57 PM
net groupmap JeffC1 Linux - Newbie 1 10-15-2008 03:28 PM
Samba Permissions problems johno12345 Linux - Server 0 06-28-2007 11:01 AM
samba and permissions Problems cvc505 Linux - Networking 3 08-06-2004 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration