XcodesOrg / XcodesOrg/xcodes

Asking for user password on mac2.metal ec2

Open
#282 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
4.8k
Forks
182
Avg merge
2d 12h
Merged PRs (30d)
1

Description

I am running xcodes install --latest --experimental-unxip --empty-trash as ec2-user on a mac2.metal ec2 instance.

There is no password for the user, but it is able to sudo. However, it is prompting for the password anyway. Can xcodes detect and not prompt for password?

As a workaround, I am running sudo su and becoming root and then xcodes install --latest --experimental-unxip --empty-trash. Hopefully that works.

If not, I will try the --no-superuser flag. Not sure what becoming root actually sets up.

Don't ask for superuser (root) permission. Some optional steps of the installation will be skipped.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the prompt with xcodes install --latest --experimental-unxip --empty-trash as ec2-user on a mac2.metal EC2 instance, then compare it with running as root and with --no-superuser. Confirm that a sudo-capable user without a password no longer receives an unnecessary prompt, while documenting any optional steps that remain skipped.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
authorization, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.