Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    Can you run id --groups both from an interactive bash and from cron and see if there are any differences in its output? Commented Aug 31, 2018 at 15:37
  • When I run id -g the result is the "Domain Users" group instead of the desired group. I also re-ran the test bash script but deposited the test file in the work product directory and it created it with "Domain Users" despite the group owner of the directory being different. I think it might be creating files based off the primary AD group membership. Edit: I should probably note that when I touch test.file from this user it does create it with the correct group owner. Commented Aug 31, 2018 at 15:56