Advertisement
manseel

Root Login in Chrome OS

May 11th, 2012
1,621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. Login to Chrome shell as root user
  2. ----------------------------------
  3.  
  4. By default, it is not possible to switch to root user from a normal user like chronos due to some security aspects of Chrome.
  5.  
  6. So the following procedure can be followed to get root shell access:
  7.  
  8. 1. By default, chronos has sudo powers. So switch to root using the password of chronos
  9.  
  10. $ sudo su
  11.  
  12. 2. Once landed in the root shell, the we can set the root password. But by default, the root file-system is mounted without write permission. So the root partition has be to be remounted with rw permission using the following command:
  13.  
  14. # mount -o remount,rw /
  15.  
  16. 3. Reset the root password using the following command:
  17.  
  18. # passwd
  19.  
  20. 4. Add the cronos to the wheel group, so that su - root (switching to root) is possible from the cronos user.
  21.  
  22. # vim /etc/group
  23.  
  24. append "cronos" or any other "username" to the 'wheel' group.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement