Trying out new 9.5.5 "Run As Specified User" capability

Where is the documentation for this new feature?


Originally posted here: BigFix 9.5 Patch 5 is now available - #5 by steini44

1 Like

That is a good question!!

Please see the ā€˜runas=localuserā€™ override option: https://developer.bigfix.com/action-script/reference/execution/override.html

2 Likes

RunAs=localuser specifies a user different from the logged on user.

user=<username> or {relevance to describe the username} where the username specified must be either local or listed in local accounts.

So from the documentation, this is not possible with domain accounts? You need to create a local user first with Administrator rights (because I think this will be most of the time the case why we want a ā€œspecified userā€ to run an action ā†’ Admin on the pc, but not system account)? Or if they are in a Group on the computer (like Administrator Group or User group), will that be ok too?

Can you clarify please?

I believe you should be able to specify a domain user using the following format: user@domain.com (but I will test to verify).

2 Likes

Ok, perfect. Iā€™ll test also tomorrow in my test environment.

Thanks!

That was the intent with the feature that domain accounts should be usable. What was your testing able to show?

@AlanM, @Aram

Iā€™ve looked into it last real quick last week, but didnā€™t get it to work.

Iā€™ve tried the following:

But in the log I have following error:

Command failed (Override value is unknown for this keyword.) override RunAs=localuser (action:8088)

Iā€™v also tried RunAs=user@domain.com, but same errorā€¦ (except that =localuser is changed by user@domain.com in the error)

Is there an example available on how to use it?

The message seem to indicate the value ā€œlocaluserā€ for keyword RunAs is not recognized. Are you sure you are using 9.5.5?

Also, I believe keyword Password is required for Windows. (When I ran the same override with 9.5.5.193 FixletDebbuger, I got the message ā€œRunAsLocalUser in Windows requires the keyword 'password' to be speicifed.ā€)

1 Like

Hi @akira

Can you post that part of your script? Maybe iā€™m missing somethingā€¦

The version that matters is the version of Agent, not Console.
From 9.5.5.193 Agent, I got following in the log:

At 17:53:09 +0900 - actionsite (http://mycompany.test.local:52311/cgi-bin/bfgathe
r.exe/actionsite)
   Command succeeded override wait (action:40)
   Command succeeded override hidden=true (action:40)
   Command succeeded override RunAs=localuser (action:40)
   Command succeeded override user=aaa@bbb (action:40)
   Command succeeded override completion=job (action:40)
   Command failed (RunAsLocalUser in Windows requires the keyword 'password' to be specified.) wait test.bat (action:40)
1 Like

@akira

Yes, ofcourseā€¦ didnā€™t think of that, didnā€™t upgrade the agent yet :slight_smile:

edit: is there no upgrade fixlet for the client? latest I see is 9.5.4?

I can see client deployment tool 9.5.5, but isnā€™t there one for the client?

Hi @steini44
Unfortunately 9.5.5 client is not available right now but hopefully available again soon. Please check following thread:

Thanks for the update, missed that one :slight_smile: iā€™ll install the client manually for my test machine, iā€™ll let you know if it works.

1 Like

The agent update worked and it can read, but I still have an error:

   Command failed (LogonUser() failed) wait (action:8094)

This is my action:

Iā€™ve tried following things for user:
user=user@domain.com
user=user
user=Domain\user

But no luckā€¦ Any idea?

1 Like

Somehow I thought domain account is supported, but I realized that https://developer.bigfix.com/action-script/reference/execution/override.html says "username specified must be either local or listed in local accounts."
So I suppose domain account is not supported.

Well, that was my original question :slight_smile:

The domain account should be supported but the statement should reflect that the user needs to have logged onto the machine at some point. So if the domain user has never logged onto the endpoint it wouldnā€™t have a registry hive local to the machine.

2 Likes

Hmmmā€¦ Then thatā€™s not very handy, is it? So even if Iā€™m creating a service account for software deployment, that would mean that I need to log in on 18k devices first so that I can use that account? Are there any plans to change this so that it just looks in the Local Groups (like Administrator) and see if itā€™s there?

Where will I find documentation of the ā€œRun As Specified Userā€ capability? Site search and Google search have failed me.

Sincerely,

David