~/.bash_history owned by root

Bug #415180 reported by Jim Tarvid
8
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@venus:~/couchdb/apache-couchdb-0.9.1$ ls -la ~/.bash*
-rw-r--r-- 1 tarvid tarvid 1062 2009-06-17 16:23 /home/tarvid/.bash_history
-rw-r--r-- 1 tarvid tarvid 220 2009-06-17 13:59 /home/tarvid/.bash_logout
-rw-r--r-- 1 tarvid tarvid 74 2009-08-09 18:39 /home/tarvid/.bash_profile
-rw-r--r-- 1 tarvid tarvid 3115 2009-06-17 13:59 /home/tarvid/.bashrc

It does not contain recent bash history

After changing ownership, it does contain bash history.

Matthias Klose (doko)
Changed in bash (Ubuntu):
status: New → Incomplete
Jim Tarvid (tarvid)
description: updated
Revision history for this message
sam tygier (samtygier) wrote :

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

Revision history for this message
Matthias Klose (doko) wrote :

the guess in comment #1 is correct. closing

Changed in bash (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.