There should be a setting in your config/gitorious.yaml file
concerning which user is being used. You may also need to specifically
specify the home environment variable in environment.rb with a line
like:

ENV['HOME'] = '/home/git'

On Fri, Apr 6, 2012 at 1:55 AM, Thomas Kjeldahl Nilsson
<[email protected]> wrote:
> Hi Gregory,
>
> In a stock Gitorious install the Rails server process should be run by the
> git user, not root: ie. changes to ~/.ssh/authorized_keys should resolve to
> the git user home directory, not roots .ssh. So if you run everything as
> root you will have problems. Could this be the problem?
>
> cheers,
> Thomas
>
>
> On 04/03/2012 10:26 PM, Gregory Rice wrote:
>>
>> Hey guys,
>>
>> My local install is writing to the wrong authorized_keys location
>> instead of /home/git/.ssh/authorized_keys.
>>
>> I know this from the messaging log when I try to add another public
>> key:
>>
>> Rails available: Adding dispatcher prepare callback.
>> Rails available: Adding dispatcher prepare callback.
>> SshKeyProcessor::on_error: Errno::ENOENT raised: No such file or
>> directory - /root/.ssh/authorized_keys
>> SshKeyProcessor::on_error: ActiveMessaging::AbortMessageException
>> raised: ActiveMessaging::AbortMessageException
>>
>> What did I do wrong?
>>
>> Thanks,
>> Greg Rice
>>
>
> --
> best regards,
> Thomas Kjeldahl Nilsson
> http://gitorious.com
>
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to