News for hackers. Stuff that matters.

Run chrome in linux with root login

One reason for still sticking with firefox has been that chrome does not run when you are logged in as root. I know the implications of running as root, so I had to find some way of still using chrome.

Here is a neat trick.. pretty simple actually.

just ssh into localhost with the user id with X enabled.

ssh [email protected] -X Chrome runs just as you would expect it to. Before running chrome you will need to change permission of /tmp folder with the command "chmod 1777 /tmp".. run this command before ssh'ing into user login..

cheers

( 2 comments | on HN )
Re:Run chrome in linux with root login by ez77 on Saturday March 31, 2012 @08:26PM (#3782054)
Why would you want to run a browser as root?
Re:Run chrome in linux with root login by hobbyist on Saturday March 31, 2012 @09:51PM (#3782285)
Well, I wont login into root specially to run a browser.. if you happen to login as root for some reasons, and you need to run chrome then a clean way is what I have put in the post.. u dont need to log out from X and re login again with your user..