#102412 - 2003-06-27 03:07 PM
w2k, samba and su
|
MarcoG60
Fresh Scripter
Registered: 2003-03-28
Posts: 23
Loc: Netherlands
|
I can't seem to get my script working!
i've got a samba pdc wich runs kixtart. but my regist5ry settings won't be processed unles i'm the user is a member of domain admin group.
with this function everything works fine. but when a user who isn't a domain admin logs in it al goes wong. the script wont write into de register i have settings for hkcu and hklm but it just won't write in it.
i've installed the su command and got it working only i stil wont see the registry entry's
i tried su with the -l option and then the script puts everything in the .default but this also doesn't work it won't be proecessed but i can see the hacks.
but i just cant write the registry for the user who logged in?
could you please help me
|
|
Top
|
|
|
|
#102413 - 2003-06-27 03:13 PM
Re: w2k, samba and su
|
MarcoG60
Fresh Scripter
Registered: 2003-03-28
Posts: 23
Loc: Netherlands
|
When i open the regeistry as administrator i can see the adjustments i made. but as soon as the shell terminates it takes the hkcu of the user who logged in so no adjustements.
i heard also that a normal user could write to the hkcu, but it doesn't work.
please help i'm desperate
|
|
Top
|
|
|
|
#102415 - 2003-06-27 03:22 PM
Re: w2k, samba and su
|
MarcoG60
Fresh Scripter
Registered: 2003-03-28
Posts: 23
Loc: Netherlands
|
It also doesn't work when i start it manually.
i'll put up a piece of the code it's just for testing
------netlogon.kix $userid="administrator" $password="test" setl "SU_COMMANDLINE=c:\kixstart\WKIX32.EXE c:\kixnetlogon\netw2000register.kix" setl "SU_PASSWORD=$password" go c: shell "%comspec% /c su $userid -v" --------
------netw200register.kix
WritePolicy($hkcusmwcvps,NoDispBackgroundPage,1,REG_DWORD) WritePolicy($hkcusmwcvps,NoDispScrSavPage,1,REG_DWORD) WritePolicy($hkcusmwcvps,NoDispSettingsPage,1,REG_DWORD) WritePolicy($hkcusmwcvps,NoDispCPL,1,REG_DWORD) WritePolicy($hkcusmwcvps,NoDispAppearancePage,1,REG_DWORD)
Function WritePolicy($subkey,$entry,$expres,$type) IF EXISTKEY($subkey)<>0 ADDKEY($subkey) ENDIF WRITEVALUE($subkey,"$entry","$expres","$type") EndFunction ----------
this works when i'm a domain admin
|
|
Top
|
|
|
|
#102417 - 2003-06-27 04:34 PM
Re: w2k, samba and su
|
MarcoG60
Fresh Scripter
Registered: 2003-03-28
Posts: 23
Loc: Netherlands
|
Thanks for the tip.
do you know any forum on which i can find people with the same pdc,samba policy problems.
i checked the site but it didn't yet answer al my questions. the file talks about active directory but i don't have active directory on my samba server.
|
|
Top
|
|
|
|
#102418 - 2003-06-27 04:37 PM
Re: w2k, samba and su
|
MarcoG60
Fresh Scripter
Registered: 2003-03-28
Posts: 23
Loc: Netherlands
|
i also blocked in my script the abbility to run registry editor.
so if i could give the users more rights in the registry it could be fixed. if anyone knows how to do this please let me now
|
|
Top
|
|
|
|
#102420 - 2003-06-27 05:08 PM
Re: w2k, samba and su
|
MarcoG60
Fresh Scripter
Registered: 2003-03-28
Posts: 23
Loc: Netherlands
|
if i read your post right you tell me i can let my samba server act as a active directory server?
is this possible?
|
|
Top
|
|
|
|
#102430 - 2003-06-30 10:30 AM
Re: w2k, samba and su
|
MarcoG60
Fresh Scripter
Registered: 2003-03-28
Posts: 23
Loc: Netherlands
|
Ah i'm back at work and getting a lot of good reactions. great thkx
Oke i'm a bit new in the in this situation. But i understand that you lonkero also have a simular situation?
AD ? Don't understand what this option is.
I have also tried to use the .pol files but my workstations wouldn't pick it up. I used a pol editor from w98 (we don't have NT4) if you could give me any suggestions of solving this problem.
wich poleditor to use and what this AD is
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 601 anonymous users online.
|
|
|