LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 03:34 PM   #1
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS, Mageia, Debian, Fedora, openSUSE, Ubuntu
Posts: 263

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, 05: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: 32

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 10:45 AM
Samba permissions problems transmogrifox Linux - Software 5 01-17-2009 06:57 PM
net groupmap JeffC1 Linux - Newbie 1 10-15-2008 04:28 PM
Samba Permissions problems johno12345 Linux - Server 0 06-28-2007 12:01 PM
samba and permissions Problems cvc505 Linux - Networking 3 08-06-2004 06:15 PM


All times are GMT -5. The time now is 08:48 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration