|
Write ssh auth keys file to user home
The ssh auth keys file was being read and written
from the home of the current user. This is not what
we want, because the current user is root and we want
to write the file to ~ubuntu. A username parameter
was added to the ssh util methods. The file's ownership
was also changed to the specified user.
The existing utils.NormalizePath method had to be altered
to account for the more complete user home expansion, since
it previously just knew about ~/foo and now needs to know
about ~user/foo also.
https://code.launchpad.net/~wallyworld/juju-core/auth-keys-user/+merge/199932
(do not edit description out of merge proposal)
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+200 lines, -68 lines) |
Patch |
|
A |
[revision details]
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/machine_test.go
|
View
|
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
cmd/plugins/juju-metadata/imagemetadata.go
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
cmd/plugins/juju-metadata/signmetadata.go
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
cmd/plugins/juju-metadata/toolsmetadata.go
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
environs/filestorage/filestorage.go
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
provider/local/environprovider.go
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
utils/file.go
|
View
|
1
|
1 chunk |
+43 lines, -8 lines |
0 comments
|
Download
|
|
M |
utils/file_test.go
|
View
|
1
|
3 chunks |
+25 lines, -3 lines |
0 comments
|
Download
|
|
M |
utils/ssh/authorisedkeys.go
|
View
|
|
9 chunks |
+63 lines, -22 lines |
0 comments
|
Download
|
|
M |
utils/ssh/authorisedkeys_test.go
|
View
|
|
12 chunks |
+30 lines, -25 lines |
0 comments
|
Download
|
|
M |
worker/authenticationworker/worker.go
|
View
|
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
worker/authenticationworker/worker_test.go
|
View
|
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
Total messages: 3
|