how to disable goguardian with crosh

Bypass GoGuardian with crosh: Step-by-Step Guide

By David Jones
AD

Are you a Chrome OS user who's found Google Guardian a bit too restrictive? You're not alone. While Google Guardian provides excellent security for educational or organizational use, it might sometimes hinder productivity for personal users. In this article, we'll guide you through the process of disabling Google Guardian using crosh, Chrome OS's command-line shell.

However, before we proceed, let's understand that disabling Google Guardian isn't recommended for conventional Chromebooks. Google Guardian is designed to enhance security and restrict access to sensitive areas. Disabling it might expose your device to potential security risks. This guide is intended for advanced users or those operating in controlled environments where such risks are managed appropriately.

Understanding crosh and Shell Commands

Before we dive into disabling Google Guardian, it's essential to understand what crosh and shell commands are. crosh is a command-line shell built into Chrome OS that allows users to run Linux commands. It's a powerful tool that can help you manage your Chromebook's settings, install software, and, in this case, manage Google Guardian.

AD
HOW TO CROCHET ONE HANDED - Disability Impaired Crafts | Cheryl Dee Crochet
HOW TO CROCHET ONE HANDED - Disability Impaired Crafts | Cheryl Dee Crochet
How to do diving goggle with amigurumi method.
How to do diving goggle with amigurumi method.
Crochet Chibi Crystal Guardian Doll Pattern - Kawaii Tutorial Guide
Crochet Chibi Crystal Guardian Doll Pattern - Kawaii Tutorial Guide

To access crosh, press Ctrl + Alt + T on your keyboard. This will open the crosh shell, where you can type and run commands. The first thing you'll see is a prompt like 'crosh>' or 'chpeak@localhost ~ $'. This indicates that you're now in the shell environment.

Switching to the Linux environment

By default, crosh runs commands in a sandboxed environment. To run commands that can modify your system, you'll first need to switch to the Linux environment using the 'shell' command. Here's how:

How To Find Accounts Linked To My Gmail | Daves Computer Tips
How To Find Accounts Linked To My Gmail | Daves Computer Tips
How to Invisible Decrease in Crochet
How to Invisible Decrease in Crochet
shell

The # symbol will now replace the crosh or chpeak prompt, indicating that you're in the Linux environment.

Disabling Google Guardian

Now that you're in the Linux environment, you can disable Google Guardian by adjusting the device's flags. Here's how:

AD
sudo su -
gsettings set com.google.g Guardian 0

In the first line, 'sudo su -' grants you root privileges. The second line, 'gsettings set com.google.g Guardian 0', is the command that actually disables Google Guardian.

After running these commands, Google Guardian should be disabled. However, this change will only last until the next reboot. To make the change permanent, you'll need to create a startup script. Here's how to do that:

Making the Disabling Permanent

To make the disabling of Google Guardian permanent, you'll need to create a startup script that runs every time your Chromebook boots. Here's how:

AD

Warning: Modifying startup scripts can potentially harm your system if not done correctly. Please proceed cautiously.

Creating a Startup Script

First, navigate to the '/etc/rc.d/' directory using the 'cd' command. This directory contains scripts that run every time the system boots:

cd /etc/rc.d/

Next, create a new script using the 'touch' command. For this example, let's name the script '99 disable-guardian' (you can name it anything you like, but it's a good practice to use the suffix 'Ǥuardian' to indicate the purpose):

AD
touch 99 disable-guardian

Now, using a text editor like 'nano', open the script for editing:

nano 99 disable-guardian

Once the text editor opens, paste the following command and save the file:

gsettings set com.google.g Guardian 0

Finally, make the script executable using the 'chmod' command:

chmod +x 99 disable-guardian

After following these steps, the script will run every time your Chromebook boots, keeping Google Guardian disabled.

Re-enabling Google Guardian

If you change your mind and want to re-enable Google Guardian, you can simply delete the startup script you created. Here's how:

rm /etc/rc.d/99 disable-guardian

This will remove the script and re-enable Google Guardian on the next reboot.

That's it! You now know how to disable Google Guardian using crosh and make the change permanent using a startup script. Remember, disabling security features can potentially expose your device to risks, so proceed with caution and ensure you understand the implications of your actions. Happy tinkering!

AD