devxlogo

The LogonUser function and the SE_TCB_NAME privile

The LogonUser function and the SE_TCB_NAME privile

Question:
I can’t use the LogonUser function because I don’tknow how to set (with program, if possible) the SE_TCB_NAME privilege. When I use your program that shows the use of the LogonUser function, the sytem says to me it is missing a privilege. What can I do to have this privilege?

Answer:
If you are talking about my 10-minute solutions, then I did tell you how to do it:

“Since there’s one little gotcha with using LogonUser — it requires that the process calling LogonUser must have SE_TCB_NAME privileges (i.e., the ‘Act as part of operating system’ right in the advanced section of user rights under User Manager). This is not a right you want to give your average user. But with DCOMCNFG you can set this OLE server to run either as the system account (which has this right by definition) or as a specific user account (which you set up and gave this right to).”

The only thing that might not have been clear is that to see this right, you must have the “Show Advanced User Rights” checkbox checked.

See also  How to Create and Deploy QR Codes Online: A Comprehensive Guide
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist