Asking for user password on mac2.metal ec2
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.
ec2-user won't have a password but you can run commands with sudo.
On mac ec2 instances, i run all xcodes commands with sudo and haven't had an issue
sudo xcodes install --latest --experimental-unxip
-
Which steps does --no-superuser skip? Are they important?
-
Even with a user account that has full passwordless sudo privileges, and is in the admin group, it asks for a password. What does it require a password for then?
-
Is running xcodes with
sudoa valid option? Perhaps even the recommended one. If the script always attempts to do something as the root account.
Could these be added in the docs? If too detailed for the README file (perhaps it is) create a new docs/faqs.md or additional_notes.md file.