i am guessing that you can achieve this by running bash as root, but with $HOME 
still set to /home/tarvid
eg if you used $sudo bash

s...@oberon:~$ sudo -i
r...@oberon:~# echo $HOME
/root
r...@oberon:~# logout
s...@oberon:~$ sudo -s
r...@oberon:~# echo $HOME
/home/sam
r...@oberon:~# exit
s...@oberon:~$ sudo bash
r...@oberon:~# echo $HOME
/home/sam

-- 
~/.bash_history owned by root
https://bugs.launchpad.net/bugs/415180
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to