View Single Post
vkv.raju's Avatar
Posts: 402 | Thanked: 451 times | Joined on Dec 2007 @ India
#154
Originally Posted by marktold View Post
BTW

I tried with root -> take me to: Nokia-N900-51-1:~#

and

sudo gainroot -> takes me to: /home/user #

can anyone tell me the difference?

I tried with Wifi as well as 3G since sometimes I had the problem that some app-repositories would not be resolved. Both ways did not work.

Markus
"root" logs you back into as root to it's home directory. That's why you see that "Nokia-N900-51-1:~#"

"sudo gainroot" gives you root privileges there itself. So, your present working directory is retained.

Guess, "root" internally calls "sudo gainroot" and then it does some things extra.

"whoami" will return "root" for both the above ways.