M117+ removes the 'sudo' command. #5005
Replies: 16 comments 27 replies
-
Yeah, that's really unfortunate. Hopefully they actually enable sudo in VT-2. I can't find any public bugs on it, so if you file or discover one, please share a link.
|
Beta Was this translation helpful? Give feedback.
-
This works. After installing openssh-server I needed to create directory /run/sshd. For anyone looking for a guide to get back their GUI Crouton:
Edit: originally I had step 7 as "in the crosh shell: I really don't know what Google was thinking of with this change: anyone who has gone to the trouble of enabling developer mode and installing crouton (or anything else that requires root) obviously wanted to do it. I think they've always said they won't support developer mode problems, so why not leave it at that? Looks like someone at Google decided to solve a problem that didn't exist, and in doing so stripped functionality from people (like me) who would never have bought a Chromebook if it wasn't for Crouton. It's all very well saying use Crostini, which I do for some things, but it's slow on low spec machines and it's quite possible to hard-lock the machine if you try to do too much. Rant over. |
Beta Was this translation helpful? Give feedback.
-
My reply begins: The chromebook updated automatically, and with the next restart, sudo wasn't working. I use bash in a chroot container. Occasionally, I use the Ubuntu desktop, because it gives me simple access to X11 apps. I am able to switch to a VT-2 shell, and switching to root does work in the developer console. I am able to get some functionality from the chroot container, but I can't access the Ubuntu desktop or the X11 apps. I've only been working on this problem for a week, and I am surprised to read that people have been trying to solve this for over a month. Where my view differs slightly from dnschneider is that, it is not only the people that are using crouton who are affected by the "deprecation" of sudo, but anyone using any terminal emulator on the chromebook, will discover that bash is essentially not functional. I can't understand the logic, because it seems to me that Sudo itself is a security measure that has probably been around for 75 years. As my AI constantly reminds me, it is dangerous to let other processes run as root and use sudo. And you would have to agree, you can't just let anyone use sudo. So, maybe the thinking was that eliminating sudo was just the security measure that was needed for the update. Well, it was nice that we got a message of the day telling us that the sudo privileges need to be set with two cumbersome options on building the image. |
Beta Was this translation helpful? Give feedback.
-
There is nothing wrong with crouton. MrChromebox says crouton is "deprecated" (see here) but he doesn't get to decide what I run on my own Chromebook. As long as you can use sudo in VT-2, then the "problem" is solvable. There is nothing illegitimate about using crouton. It still does what it was intended to do, and I appreciate the thought which went into to creating this amazing script. I wonder if we should refer to 3 virtual terminals: Ctrl-Alt-F2 = VT-2 |
Beta Was this translation helpful? Give feedback.
-
just use chromebrew and run |
Beta Was this translation helpful? Give feedback.
-
@DennisLfromGA @dnschneid @drinkcat crouton is no longer installable at all - - - some weird error about a read-only file system. I can't copy and paste it because in VT-2 there is no way to do this. All I was trying to do was install a core, with This also doesn't work with xenial: You cannot even get beyond this step: nothing downloads. |
Beta Was this translation helpful? Give feedback.
-
Will wonders never cease? I can't access my crouton either. I'm
going to try the update, and will report back if it works.
…On Fri, May 10, 2024 at 3:28 PM CroutonIsFun ***@***.***> wrote:
@DennisLfromGA @dnschneid @drinkcat
crouton is no longer installable at all - - - some weird error about a read-only file system. I can't copy and paste it because in VT-2 there is no way to do this.
All I was trying to do was install a core, with sudo crouton -r focal -t core
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
correction, I can't access my chroot. The files are fine.
/usr/local/bin/mount-chroot 362 cannot create
/sys/kernel/security/chromiumos/inode_securitiy_policies/allow_fifo:
Read only file system.
Well, the permissions of the directory allow_fifo are set at 200, and
trying to modify the permissions alerts me to the conditions of a Read
only file system. this can't be on the chip, because we just had an
update.....
Gosh this can't be since last March 8, 2024, as per this discussion.
#5056 and closed as not
planned?
I seem to remember trying to remount, but finding a mount point was
difficult if not impossible.
I can find no information on BRANCH=rwsec
On Fri, May 10, 2024 at 4:11 PM Benjamin Godfrey
***@***.***> wrote:
…
Will wonders never cease? I can't access my crouton either. I'm
going to try the update, and will report back if it works.
On Fri, May 10, 2024 at 3:28 PM CroutonIsFun ***@***.***> wrote:
>
> @DennisLfromGA @dnschneid @drinkcat
>
> crouton is no longer installable at all - - - some weird error about a read-only file system. I can't copy and paste it because in VT-2 there is no way to do this.
>
> All I was trying to do was install a core, with sudo crouton -r focal -t core
>
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Changing the mount point does seem to work to a certain extent, but...
$ sudo enter-chroot
Entering [stately partition ]...
chroot failed to run command 'su': Permission denied
WARNING: starting chroot system dbus daemon failed with code 126
chroot failed to run command 'su' : Permission denied
Unmounting [stately partition ]....
Here is the discussion from 9 years ago about the error code 126:
#1751 and we are back at
square one. The answer is to Redownload everything....which puts us in
a loop.
Error 126 means the command exited due to receiving an invalid argument.
The su isn'r running because either we are bypassing the su
instructions or because the sudo itself is corrupted or lacking a
dependency library.
…On Fri, May 10, 2024 at 5:06 PM CroutonIsFun ***@***.***> wrote:
Thank you for the tip. The rwsec branch allows files to download, but the install fails at the point of creating /var/run/crouton/...
Executing the command sudo mount -o remount,rw /sys/kernel/security/ seems to do the trick. Since this needs to be done after each reboot, I've created an alias to do this for me.
I'm in the process of installing the LXDE desktop for release focal fossa. I'll let you know how it goes.
I had resigned myself to using Crostini, and dual booting. So, I had installed deluge in crostini so I could download a torrent from Xubuntu. But every time I attempted to copy the downloaded iso to the ChromeOS Downloads folder, the /mnt/chromeos folder in Crostini got corrupted. And the only way to fix it was to delete Crostini and set it up again.
Thanks for jumping in. ~James
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
So now, multiple hacks are needed to install and use Crouton:
This is so far removed from the original instructions that there is no way a newcomer can figure out what to do. And as issue after issue continues to be filed, it's really hard to explain to someone how to fix it. Any suggestions? Is it possible to re-write the instructions? |
Beta Was this translation helpful? Give feedback.
-
The situation now is ludicrous! I cannot get xenial working without enabling sudo in the crosh shell using Chromebrew or some other method: and xenial is a "supported" release... And yet, focal works great, I can launch ssh in the chroot and ssh to it from the crosh shell: and focal is an "unsupported" release, which you have to wait 30 seconds before installation continues... And basically, crouton itself is nearly unsupported, as it's "maintenance only", but there's really no maintenance to speak of. To answer the question, Yes, we can continue using crouton, as long as community members keep coming up with clever ways to make it work. And if I sound aggravated, well, I am. Why can't we at least make focal a supported release? If I knew enough, I'd fork it myself and setup shop, but I haven't reached that level yet. Thanks to David, Dennis, Nicholas and others who have contributed over the years. James :) |
Beta Was this translation helpful? Give feedback.
-
And now, last but not least, the crouton extension is being deprecated. Have you seen the flag on the extension in the web store? Well, it's not there at the moment, but there was a notice it may be removed because it doesn't conform to certain standards. Weird. It was there just an hour ago. I've moved on to dual booting when I can't do something in Crostini. |
Beta Was this translation helpful? Give feedback.
-
I had spent 2-3 hours carefully setting up a chroot, it was working well, then I updated my Chromebook. I'm on extended support, so I had to give up my Play Store Apps. No big deal. But after the reboot, when I tried to enter-chroot, I got an error, something like this: Cannot create /var/run/stateful_partition/crouton/chroots/ yada yada yada I'm sorry I don't have the exact wording. I'm now at version 126.0.6478.251 (Official Build) (64-bit), on the stable channel. I'm giving up after this. I'm going back to verified mode, and I'll be installing and using Linux (crostini). End of the line for crouton, I think. It's been fun. :-) |
Beta Was this translation helpful? Give feedback.
-
there is no apt installed on my vt-2 terminal |
Beta Was this translation helpful? Give feedback.
-
This is honestly just annoying. Crouton is one of those little gems that makes a Chromebook worth it to so many people—it gives us the flexibility to actually make the device our own. Taking away sudo in M117 feels like a slap in the face to those of us who appreciate having that control. Sudo isn’t just some technical command; it’s what lets us experiment, customize, and actually push the limits of what these devices can do. Why strip out something that people rely on and appreciate without a solid reason or alternative? It feels like ChromeOS is slowly chipping away at the things that made it fun and valuable for power users. It’s just disappointing to see the platform moving away from what actually made it special for so many of us. I will say, I do love using Crostini on my newer Chromebook model—it’s really impressive. It covers almost everything I need, and sometimes it’s even more than enough. Crostini has brought a lot of flexibility and power that’s pretty much built right in, which I definitely appreciate. It doesn’t replace the charm and control of crouton completely, but it’s close. For what it’s worth, Crostini makes a solid case on its own, especially with each update pushing it forward. |
Beta Was this translation helpful? Give feedback.
-
Whenever I setup "Linux development environment", which I think is the same as "Crostini", it causes my Chromebook to run poorly. |
Beta Was this translation helpful? Give feedback.
-
Chrome version M117+ removes the
sudo
command which brings up some questions for the continued use ofcrouton
.When entering a crosh shell session we now get the following message:
Although not yet possible with Chrome beta version 117.0.5938.22, the above alludes to the possibility of still being able to run the
sudo
command in the VT-2 shell, let's hope that comes to fruition.So, for the time being, short of rebuilding the board image with the flag(s) mentioned above, we can no longer run
crouton
as user 'chronos' in a crosh shell or the VT-2 shell, when attempting to do so the following message is displayed when invoking thesudo
command:I guess some of the foremost questions are:
crouton
as root or even chronos in the VT-2 shell?crouton
in the VT-2 shell will the GUI desktops still launch & work?crouton
still a viable way to run Linux distros in a chroot or should we move to Crostini and stop usingcrouton
?I think once Chrome version M117 lands in the stable channel, currently scheduled for Tue, Sep 19, 2023, we'll all be facing these issues.
-DennisLfromGA
Beta Was this translation helpful? Give feedback.
All reactions