Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[Samba] No Admin-Rights in SMB-PDC-Domain

 
   Soft32 Home -> Linux -> Samba RSS
Next:  Accepted gforge 4.8.1-1 (source all)  
Author Message
Daniel Spannbauer

External


Since: Jul 02, 2009
Posts: 5



(Msg. 1) Posted: Mon Sep 21, 2009 3:20 am
Post subject: [Samba] No Admin-Rights in SMB-PDC-Domain
Archived from groups: linux>samba (more info?)

Hello,

I've build a domain with Samba 3.0.23 and sucessfully joined this domain
with a Windows-XP-Machine. I can log in to that machine as User "Root",
wich is in the Group "Domain Admins" (rid=512). But I have no
admin-rights on that machine.
Also, normal User can not log in over the Remotesession (RDP).

Can anybody help me to figure out why?

Here is my smb.conf:



[global]
server string = b-login
workgroup = marco
; speed optimierungen
socket options = TCP_NODELAY
share modes = no
debug level = 10
debug uid = yes
getwd cache = yes
; read size = 65536
preserve case = yes
log level = 10

printer admin = ds
domain logons = yes
domain master = yes
local master = Yes
preferred master = Yes
ldap admin dn = cn=Administrator,dc=marco,dc=de
ldap delete dn = No
ldap group suffix = ou=group
ldap ssl = off
ldap suffix = dc=marco,dc=de
ldap user suffix = ou=people
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=idmap
; ldap passwd sync = yes
logon path = \\%L\%U\.ntprofile
logon home = \\%L\%U\.ntprofile
logon drive = H:
passdb backend = ldapsam:"ldap://10.3.1.3"
security = user
add machine script = /usr/sbin/useradd -c Machine -d
/var/lib/nobody -s /bin/false %m$
printing = cups
printcap name = cups
printcap cache time = 750
cups options =
smb ports = 139
local master = no
kernel oplocks = No

; ----- same as "umask 2"
create mask = 0775
; ----- disconnect after N minutes inactive
dead time = 300
; ----- check whether clients are alive [seconds]
keep alive = 300
; ----- may delete readonly files
delete readonly = yes
; ----- logfiles grow up to N kByte
; max log size = 100
; ----- don't map archive bit to execute bit
map archive = no
; ----- "umask 2" setting for files and directories
create mask = 0775
directory mask = 0775
; ----- WINS support
; note: on SuSE 8samba is patched so that
; if (wins server == localhost)
; wins support = yes
; preferred master = yes
; os level >= 32
;

wins server = gate

name resolve order = wins host bcast

security = user

netbios aliases = homedirs


Regards

Daniel

--
Daniel Spannbauer Software Entwicklung
marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen Mobil +49 171 4033220
http://www.marco.de/ Email ds RemoveThis @marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Login to vote
Daniel Spannbauer

External


Since: Jul 02, 2009
Posts: 5



(Msg. 2) Posted: Wed Sep 23, 2009 7:20 am
Post subject: Re: [Samba] No Admin-Rights in SMB-PDC-Domain [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Daniel Spannbauer schrieb:
> Hello,
>
> I've build a domain with Samba 3.0.23 and sucessfully joined this domain
> with a Windows-XP-Machine. I can log in to that machine as User "Root",
> wich is in the Group "Domain Admins" (rid=512). But I have no
> admin-rights on that machine.
> Also, normal User can not log in over the Remotesession (RDP).
>
> Can anybody help me to figure out why?
>
> Here is my smb.conf:
>
>
>
> [global]
> server string = b-login
> workgroup = marco
> ; speed optimierungen
> socket options = TCP_NODELAY
> share modes = no
> debug level = 10
> debug uid = yes
> getwd cache = yes
> ; read size = 65536
> preserve case = yes
> log level = 10
>
> printer admin = ds
> domain logons = yes
> domain master = yes
> local master = Yes
> preferred master = Yes
> ldap admin dn = cn=Administrator,dc=marco,dc=de
> ldap delete dn = No
> ldap group suffix = ou=group
> ldap ssl = off
> ldap suffix = dc=marco,dc=de
> ldap user suffix = ou=people
> ldap machine suffix = ou=Computers
> ldap idmap suffix = ou=idmap
> ; ldap passwd sync = yes
> logon path = \\%L\%U\.ntprofile
> logon home = \\%L\%U\.ntprofile
> logon drive = H:
> passdb backend = ldapsam:"ldap://10.3.1.3"
> security = user
> add machine script = /usr/sbin/useradd -c Machine -d
> /var/lib/nobody -s /bin/false %m$
> printing = cups
> printcap name = cups
> printcap cache time = 750
> cups options =
> smb ports = 139
> local master = no
> kernel oplocks = No
>
> ; ----- same as "umask 2"
> create mask = 0775
> ; ----- disconnect after N minutes inactive
> dead time = 300
> ; ----- check whether clients are alive [seconds]
> keep alive = 300
> ; ----- may delete readonly files
> delete readonly = yes
> ; ----- logfiles grow up to N kByte
> ; max log size = 100
> ; ----- don't map archive bit to execute bit
> map archive = no
> ; ----- "umask 2" setting for files and directories
> create mask = 0775
> directory mask = 0775
> ; ----- WINS support
> ; note: on SuSE 8samba is patched so that
> ; if (wins server == localhost)
> ; wins support = yes
> ; preferred master = yes
> ; os level >= 32
> ;
>
> wins server = gate
>
> name resolve order = wins host bcast
>
> security = user
>
> netbios aliases = homedirs


Hmmm, when I log in on the Workstation as Administrator (which is mapped
to User root) then I get a Groupsid which ends to 513, so I get as
Administrator the Rights of the normals Domain USer. But in LDAP the
PrimaryGroupSid for root is set to 512 (DomainAdmins).
In the Group-Entry for the Group of the DomainAdmins root is also in
MemberUID.

Can anybody tell me why the PrimaryGropSid isn't used by samba?


Regards

Daniel






>
>
> Regards
>
> Daniel
>

--
Daniel Spannbauer Software Entwicklung
marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen Mobil +49 171 4033220
http://www.marco.de/ Email ds RemoveThis @marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Login to vote
Daniel Spannbauer

External


Since: Jul 02, 2009
Posts: 5



(Msg. 3) Posted: Wed Sep 23, 2009 7:20 am
Post subject: Re: [Samba] No Admin-Rights in SMB-PDC-Domain [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Volker Lendecke schrieb:
> On Wed, Sep 23, 2009 at 12:33:24PM +0200, Daniel Spannbauer wrote:
>> Hmmm, when I log in on the Workstation as Administrator (which is mapped
>> to User root) then I get a Groupsid which ends to 513, so I get as
>> Administrator the Rights of the normals Domain USer. But in LDAP the
>> PrimaryGroupSid for root is set to 512 (DomainAdmins).
>> In the Group-Entry for the Group of the DomainAdmins root is also in
>> MemberUID.
>>
>> Can anybody tell me why the PrimaryGropSid isn't used by samba?
>
> Samba uses the gidNumber of the account and maps it via the
> group mapping entries to a SID. We only have the
> primaryGroupSid still in our schema because removing it
> would have made upgrades almost impossible.
>

Hello Volker,

that means if the user Root has an Entry "primaryGroupSID" with the sid
512 then the User should have Admin-Rights because hes in the
Domain-Admin-Group?

Regards

Daniel



> Volker

--
Daniel Spannbauer Software Entwicklung
marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen Mobil +49 171 4033220
http://www.marco.de/ Email ds.TakeThisOut@marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Samba] Win2K domain and admin rights - Hi, I have Samba (2.2.8 I think, Redhat 9) running as a PDC with Win2K clients. I am using smbpasswd for..

[Samba] domain admin - Hi ! I'm desperately looking for an answer here... I've been fighting all week-end with samba-3.0 and there's still ..

[Samba] how can I be a domain admin in 3.0RC3 ? - Hi ! I'm using samba-3.0RC3 as a PDC (for testing). I'm using the ldap backend. I created 1 user, 1 computer and some....

[Samba] domain admin and primarygroupSID - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi ! I'm using samba-3.0RC3. I just figured out that if I wanted a user...

[Samba] domain admin users? - In version 2.x the global "domain admin users" could be used to give administrator privileges to a user/group...

[Samba] How to join a domain without using admin or root - Hi there, I've a question about how to add a Win2000 machine without using the administrator account of the win-client...
       Soft32 Home -> Linux -> Samba All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]