~/.bash_history owned by root
Bug #415180 reported by
Jim Tarvid
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bash
I changed it to match .bash_profile, .bash_logout and .bashrc
tarvid@
-rw-r--r-- 1 tarvid tarvid 1062 2009-06-17 16:23 /home/tarvid/
-rw-r--r-- 1 tarvid tarvid 220 2009-06-17 13:59 /home/tarvid/
-rw-r--r-- 1 tarvid tarvid 74 2009-08-09 18:39 /home/tarvid/
-rw-r--r-- 1 tarvid tarvid 3115 2009-06-17 13:59 /home/tarvid/
It does not contain recent bash history
After changing ownership, it does contain bash history.
Changed in bash (Ubuntu): | |
status: | New → Incomplete |
description: | updated |
To post a comment you must log in.
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
sam@oberon:~$ sudo -i
root@oberon:~# echo $HOME
/root
root@oberon:~# logout
sam@oberon:~$ sudo -s
root@oberon:~# echo $HOME
/home/sam
root@oberon:~# exit
sam@oberon:~$ sudo bash
root@oberon:~# echo $HOME
/home/sam