Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sudo commands in crosh #5016

Closed
daedaevibin opened this issue Oct 6, 2023 · 5 comments
Closed

Sudo commands in crosh #5016

daedaevibin opened this issue Oct 6, 2023 · 5 comments

Comments

@daedaevibin
Copy link

I can not use sudo in crosh. I am incapable of setting the flags no matter what I do to be able to use sudo commands. No, I am not on the DEV channel. Any help would be much appreciated

@daedaevibin daedaevibin closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2023
@githubcitc
Copy link

shell
Sudo commands will not succeed by default.
If you want to use sudo commands, use the VT-2 shell
(Ctrl-Alt-{F2/Right arrow/Refresh}) or build the image with the
login_enable_crosh_sudo USE flag:

$ USE=login_enable_crosh_sudo emerge-$BOARD chromeos-login
or
$ USE=login_enable_crosh_sudo cros build-packages --board=$BOARD

chronos@ampton-rev4 / $ sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

@DennisLfromGA
Copy link
Collaborator

@githubcitc
Copy link

See:

* [M117+ removes the 'sudo' command. #5005](https://github.com/dnschneid/crouton/discussions/5005)

* https://github.com/dnschneid/crouton/wiki/Crouton-Quick-Start

-DennisLfromGA

Sorry those web pages contain information that is far too complicated; not a computer science person! The information about using 'vt-2' shell was not understood. The user 'chronos' required a password, the shell includes some statement about set password via root, but could not enter as root because root password not known either.

Really liked crouton. Enjoyed simple process of switch on computer, shell, sudo startxfce4. The computer was used for very simple use as a school teacher

Will now try to use the crostini way. Initial thoughts are a disappointment. See the blog: 'chemistryinthecity.neocities.org'

@DennisLfromGA
Copy link
Collaborator

@githubcitc,

Yeah, Crostini is the way to go now, it doesn't require Developer mode and it is simpler to install and maintain going forward.

-DennisLfromGA

@amogus-technologies
Copy link

See:

* [M117+ removes the 'sudo' command. #5005](https://github.com/dnschneid/crouton/discussions/5005)

* https://github.com/dnschneid/crouton/wiki/Crouton-Quick-Start

-DennisLfromGA

Sorry those web pages contain information that is far too complicated; not a computer science person! The information about using 'vt-2' shell was not understood. The user 'chronos' required a password, the shell includes some statement about set password via root, but could not enter as root because root password not known either.

Really liked crouton. Enjoyed simple process of switch on computer, shell, sudo startxfce4. The computer was used for very simple use as a school teacher

Will now try to use the crostini way. Initial thoughts are a disappointment. See the blog: 'chemistryinthecity.neocities.org'

The chronos password is test0000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants