Page 1 of 1 1
Topic Options
#5905 - 2000-12-21 08:41 PM NT 4/5 Permissions
Anonymous
Unregistered



Ok, I've got a problem. I've seen this problem mentioned before, but I have yet to construct a clear solution so I want to see if anyone has any new ideas. I have a script which does various things like mapping, time sync, registry modification, etc. I want to deploy this to all users in our network. The network itself is consisting of 9x's and NT 4's and 5's. The problem is clear, getting the NT 4's ad 5's to not spit out permission errors when making my modifications.

One solution I have heard is about using su to switch to local admin and run the command. Of course this leaves the famous clear-text passwords problem, and I wouldn't be able to do this anyway since some of the PCs have different local admin passwords.

Another solution is to setup the local NT scheduler to run a second script(the one with the actual modifications), and thus automatically get the second script system account privilege. This sounds interesting, and I would like to hear from some people who've tried this and any problems they might have had.

If anyone else has any other solutions, I would be thankful for your input.

Merry Christmas!!!!

Top
#5906 - 2000-12-28 09:36 AM Re: NT 4/5 Permissions
Anonymous
Unregistered


SU services works great if you use policy to block users from changing 9 kinds of things, if you make the SU account in your domain, this will make the user login on a local admin for that box.

; Check to Ensure User is Member of Administrators Group on NT PC (Skip Non-Asset)

IF (@DOMAIN = $DOMAIN AND $ASSET = "yes" AND @INWIN=1 AND $NTTYPE = "WinNT")
IF INGROUP("\\"+ @WKSTA + "\Administrators") = 0
$RESULT = ExistKey ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SU")
IF $RESULT <> 0
$X = READPROFILESTRING (@LDRIVE + "\$INI.INI" , "Domain" , "AlertType")
IF ($X = "both" OR $X = "log")
IF @KIX > 3.49
$RESULT = LOGEVENT (1,1,"User " + @USERID + " not in Admin Group on " + @WKSTA,@LSERVER)
ENDIF
ENDIF
IF ($X = "both" OR $X = "msg")
$MSGTXT = "User @USERID not in Admin Group on @WKSTA."
CALL "SENDMSG.KIX"
ENDIF
$RESULT = MESSAGEBOX ("Your PC is not properly configured. Please contact your local helpdesk immediately.","Settings Enable",16,30)
$RESULT = Logoff (1)
EXIT
ENDIF
SETL "SU_PASSWORD=suservice"
SETL 'SU_COMMANDLINE=net localgroup administrators "@userid" /add'
SHELL @LDRIVE + "\Commands\SU suservice"
$RESULT = MESSAGEBOX ("Logging off to enable user settings. Please log back in when prompted.","Settings Enable",48,10)
$RESULT = Logoff (1)
EXIT
ENDIF
ENDIF

Some of this may look odd with the reference to $INI.INI we use a domain.ini file to read against, We also have the su service in a folder called commands on the netlogon share of the server, the third is for this to work first person with admin rights must log on in order to install the su service on the local system.

Note: SETL "SU_PASSWORD=suservice" this is the password for the service.

on the other of using the service account, have not done, I think I read in here some where you set the account user name as \\domain name\user name then punch in your password, then use command scheduler to do the rest, Does anyone have more insight on this?

Top
#5907 - 2000-12-28 04:38 PM Re: NT 4/5 Permissions
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Mike,

I solved the problem of installing the SUSS service on to all of the nt workstations.

Go here http://kix.isorg.net/other_scripts/su

This is my new web site that will be replacing my old one http://www.neosoft.com/~brycel

Bryce

Top
#5908 - 2000-12-28 06:52 PM Re: NT 4/5 Permissions
Anonymous
Unregistered


Am pulling your installer in to mine to remove the intial requirement for someone to login with admin rights, Nice. thx

have been here http://kix.isorg.net , new page graphics and nice, but import you scripting into your new web, I found you web sight from someone else, they swear by you.

Top
#5909 - 2000-12-28 07:06 PM Re: NT 4/5 Permissions
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
oops! my old kix site is this
http://www.neosoft.com/~brycel/kix I forgot the /kix )

and is moving to it new home here
http://kix.isorg.net

Bryce

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.056 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org