run steam as root 1

run steam as root

    Open /usr/bin/steam
    Comment or delete such lines:
    if [ "$(id -u)" == "0" ]; then
    show_message --error $"Cannot run as root user"
    exit 1
    fi

Here is what the above code is Doing:
1. It’s creating a new file called steam.sh in the /usr/bin directory.
2. It’s adding the following lines to the file:
#!/bin/bash
steam steam://open/games
3. It’s making the file executable.
4. It’s opening the file /usr/bin/steam in a text editor.
5. It’s commenting out or deleting the lines that check to see if the user is root.

Similar Posts