[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-08-07 Thread Launchpad Bug Tracker
This bug was fixed in the package bzr - 2.2.0-1 --- bzr (2.2.0-1) unstable; urgency=low * New upstream release. + Adds support for setting timestamps to originating revisions. Closes: #473450 + Removes remaining string exception. Closes: #585193, LP: #586926 + Add C ex

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-08-07 Thread Launchpad Bug Tracker
** Branch linked: lp:debian/sid/bzr -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 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

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-07-14 Thread Parth Malwankar
** Branch linked: lp:~parthm/bzr/376388-dot-bazaar-ownership- regression-2.2 -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-04-24 Thread Parth Malwankar
** Changed in: bzr Status: In Progress => Fix Released -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ub

Re: [Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-03-15 Thread Vincent Ladeuil
> btw I think this may vary between unixes. I did test with FreeBSD and OSX and got the same results, I mentioned the explanation for Linux because that was the only one I cared to find but I've seen some mentions about a sysctl variable for them that control this precise aspect and the def

Re: [Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-03-10 Thread Martin Pool
On 11 March 2010 00:18, Vincent Ladeuil wrote: >> Another option would be to say we always attempt to chown the .bazaar (and >> .bzr.log) to be the same >> as the containing directory. > > Until parthm nudged me enough to reveal that chown isn't working for the > average user, I had always thoug

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-03-10 Thread Vincent Ladeuil
> Another option would be to say we always attempt to chown the .bazaar (and > .bzr.log) to be the same > as the containing directory. Until parthm nudged me enough to reveal that chown isn't working for the average user, I had always thought *any* user can freely use chown as long as he had w

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-23 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/etckeeper -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 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.c

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-23 Thread Launchpad Bug Tracker
This bug was fixed in the package etckeeper - 0.41ubuntu3 --- etckeeper (0.41ubuntu3) lucid; urgency=low * etckeeper: Set HOME=~root if VCS=bzr, so that bzr doesn't create root-owned .bazaar and .bzr.log in home directories when run under sudo (LP: #376388) -- Thierry Carrez

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-23 Thread Thierry Carrez
** Changed in: bzr (Ubuntu) Importance: Undecided => Low -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubun

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-23 Thread Thierry Carrez
** Changed in: etckeeper (Ubuntu) Status: Confirmed => In Progress ** Changed in: etckeeper (Ubuntu) Assignee: (unassigned) => Thierry Carrez (ttx) -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 You received this bug notification becau

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-19 Thread Parth Malwankar
** Branch unlinked: lp:~parthm/bzr/2.0_376388_dot_bazaar_ownership -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing li

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-19 Thread Parth Malwankar
** Branch linked: lp:~parthm/bzr/376388-dot-bazaar-ownership -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubu

Re: [Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-19 Thread Martin Pool
On 19 February 2010 19:06, Thierry Carrez wrote: > How about just adding HOME=/root (or something slightly more dynamic) to > our etckeeper.conf ? it's sourced everywhere and should ensure bzr is > always called with the right env ? That makes sense to me. -- Martin

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-19 Thread Thierry Carrez
(I meant HOME=~root) -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 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.

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-19 Thread Thierry Carrez
How about just adding HOME=/root (or something slightly more dynamic) to our etckeeper.conf ? it's sourced everywhere and should ensure bzr is always called with the right env ? That doesn't solve the case where people run "sudo bzr diff" or others, but that can probably wait for the fix to land i

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-18 Thread Martin Pool
I think Parth's patch in https://code.edge.launchpad.net/~parthm/bzr/2.0_376388_dot_bazaar_ownership/+merge/19593 is reasonable and useful for bzr in its own right (review welcome) but probably also etckeeper should run bzr and other programs with HOME set to ~root to avoid the problem altogether.

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-17 Thread Parth Malwankar
** Branch linked: lp:~parthm/bzr/2.0_376388_dot_bazaar_ownership -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-17 Thread Parth Malwankar
I plan to look into this issue. I was thinking of going with the approach Martin suggested: > Another option would be to say we always attempt to chown > the .bazaar (and .bzr.log) to be the same as the containing > directory. Any other thoughts/suggestions welcome. ** Changed in: bzr Ass

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-17 Thread Martin Pool
Thierry's comment in #1 is interesting: >> This is caused by bzr not really supporting to be run under sudo. In config.py:ensure_config_dir_exists it creates $HOME/.bazaar without dropping rights to the $SUDO_USER. Unfortunately the same could be said for all other config-writing functions. I'm n

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-17 Thread Daniel Hahler
Please note that this is not a problem with Git / when using Git with etckeeper: Apparently Git does not create the .git dir automatically - which may also be an option for Bazaar. Apart from that, Git behaves the same: $ sudo git config --global user.name "Daniel Hahler" $ ls -l ~/.gitconfig -rw

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-17 Thread Thierry Carrez
That leaves two options: 1/ special-casing sudo in configuration file management in bzr 2/ workaround in etckeeper (override HOME in bzr calls in etckeeper ? Pre-create $HOME/.bazaar and $HOME/.bzr.log correctly ?) (2) is certainly simpler, however it will fail to catch the case where the etckeep

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-17 Thread Martin Pitt
We won't make -H the default in sudo; it would break other use cases which rely on having the original $HOME, and general backwards compatibliity. -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 You received this bug notification because you are a m

Re: [Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-16 Thread Martin Pool
On 17 February 2010 00:48, Soren Hansen wrote: > Would using pwd.getpwuid(os.geteuid()).pw_dir rather than > os.environ['HOME'] cause more problems than it solves? I think so. The right place to solve this is imo under sudo, by using the set_home config option or -H option. This is not particul

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2010-02-16 Thread Soren Hansen
Would using pwd.getpwuid(os.geteuid()).pw_dir rather than os.environ['HOME'] cause more problems than it solves? -- ~/.bazaar created owned by root (when run under sudo) https://bugs.launchpad.net/bugs/376388 You received this bug notification because you are a member of Ubuntu Bugs, which is sub

[Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

2009-07-30 Thread Jelmer Vernooij
** Changed in: bzr (Ubuntu) Status: New => Confirmed ** Also affects: bzr Importance: Undecided Status: New ** Changed in: bzr Status: New => Triaged ** Changed in: bzr Importance: Undecided => Low ** Changed in: bzr Importance: Low => Medium -- ~/.bazaar created