Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(832)

Issue 52950043: Fix the creation of ~/.juju/ssh to be user owned

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by thumper
Modified:
10 years, 3 months ago
Reviewers:
axw, mp+201876
Visibility:
Public.

Description

Fix the creation of ~/.juju/ssh to be user owned If the user's first interaction is with bootstrapping the local provider with sudo, we want to make sure that the directory and content is owned by the user. Drive by fix for the cmd/juju MainSuite. I had a root owned ~/.juju/ssh directory, and the test was trying to read it and failing, so I isolated the test by having it use the FakeHomeSuite which overrides $HOME (and other things). Many other utilities written to help with dealing with creating directories and changing ownership of files to the user if running under sudo. https://code.launchpad.net/~thumper/juju-core/juju-ssh-dir-as-user/+merge/201876 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix the creation of ~/.juju/ssh to be user owned #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -8 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/main_test.go View 3 chunks +1 line, -7 lines 0 comments Download
M utils/ssh/clientkeys.go View 2 chunks +6 lines, -1 line 0 comments Download
M utils/sudo.go View 1 2 chunks +57 lines, -0 lines 0 comments Download
M utils/sudo_test.go View 1 3 chunks +91 lines, -0 lines 0 comments Download

Messages

Total messages: 4
thumper
Please take a look.
10 years, 3 months ago (2014-01-16 02:43:58 UTC) #1
axw
https://codereview.appspot.com/52950043/diff/1/utils/file.go File utils/file.go (right): https://codereview.appspot.com/52950043/diff/1/utils/file.go#newcode104 utils/file.go:104: func IsDirectory(path string) bool { In light of my ...
10 years, 3 months ago (2014-01-16 03:09:31 UTC) #2
axw
On 2014/01/16 03:09:31, axw wrote: > https://codereview.appspot.com/52950043/diff/1/utils/file.go > File utils/file.go (right): > > https://codereview.appspot.com/52950043/diff/1/utils/file.go#newcode104 > ...
10 years, 3 months ago (2014-01-16 03:32:41 UTC) #3
thumper
10 years, 3 months ago (2014-01-16 03:50:34 UTC) #4
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b