Skip to content

[BUG] win_lgpo_reg shouldn't write to user registry #68191

@twangboy

Description

@twangboy

Description
The win_lgpo_reg module writes user config in the user registry.pol file. It also writes the same setting to the user registry. The problem is that the user is usually the SYSTEM account because that's user running the salt minion, which doesn't make sense. The user registry.pol should be applied to all users that log in to the machine, so setting it on the user shouldn't be necessary.

Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)

Please be as specific as possible and give set-up details.

  • on-prem machine
  • VM (Virtualbox, KVM, etc. please specify)
  • VM running on a cloud service, please be explicit and add details
  • container (Kubernetes, Docker, containerd, etc. please specify)
  • or a combination, please be explicit
  • jails if it is FreeBSD
  • classic packaging
  • onedir packaging
  • used bootstrap to install

Steps to Reproduce the behavior
Set a user setting with win_lgpo_reg, the setting will be applied to the user registry.

Expected behavior
Only set the value in registry.pol

Screenshots
If applicable, add screenshots to help explain your problem.

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
3006.x

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Bugbroken, incorrect, or confusing behaviorneeds-triage

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy