Skip to content

Run google chrome as another user when logged in as root

License

Notifications You must be signed in to change notification settings

metanoix/run-chrome-as-root

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

run-chrome-as-root

Run google chrome as another user when logged in as root

create a user called chrome

# adduser chrome

google-chrome.sh

#!/bin/bash

xhost +
su chrome <<'EOF'
/usr/bin/google-chrome-stable --incognito
EOF
# chmod +x ./google-chrome.sh
# ./google-chrome.sh

About

Run google chrome as another user when logged in as root

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published