Azure / Azure/azure-linux-extensions

AADLoginForLinux generates large numbers as UID/GID

Open
#1,936 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
333
Forks
278
Avg merge
2d 9h
Merged PRs (30d)
4

Description

I'm trying AADLoginForLinux now.
But the assigned UID/GID for the Entra ID user is `3197663`, it is very large.

The following screenshot is a result of `id` command after logging in as Entra ID user.
![image](https://github.com/Azure/azure-linux-extensions/assets/4566555/adf901a0-4209-4d7f-9f47-1aec38ab5c73)

This large number causes failure of `chown`/`chgrp` command for this user because the IDs is larger than `65535`.

Is there any way to assgin UID/GID, that is smaller than 65535, for Entra ID user by default?

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named; start by locating the AADLoginForLinux code that assigns the Entra ID user's UID/GID and reproduce the reported `id` output. Done means the default IDs are below 65535 and `chown`/`chgrp` succeed for the logged-in user.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
authentication, operating-systems, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.