LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba groupmap permissions problems (http://www.linuxquestions.org/questions/linux-networking-3/samba-groupmap-permissions-problems-4175444392/)

Nick_C 01-06-2013 03:34 PM

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?

Bruce from Canada 03-13-2014 05:02 PM

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 (Post 4864101)
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?



All times are GMT -5. The time now is 05:03 PM.