git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Konstantin Khomoutov <kostix+git@007spb.ru>
To: agnes retnaningsih <agnes.monest@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: ssh admin git accidentally deleted
Date: Tue, 7 Jul 2015 16:47:08 +0300	[thread overview]
Message-ID: <20150707164708.10cd2b169187636bef4dbe6e@domain007.com> (raw)
In-Reply-To: <CAF1FN5CDnUYxjChO2PZFrDnPRUiuqXhko=iDo=tuqwvJJdUg5A@mail.gmail.com>

On Tue, 7 Jul 2015 20:30:59 +0700
agnes retnaningsih <agnes.monest@gmail.com> wrote:

> Dear git , I accidentally delete ssh admin git, unfortunately there
> just one admin so I can't make a change in the config and push to the
> repository. If there's a way undo the change or make an existing user
> become an admin or is there any super admin command?
> 
> I use git version 1.7.5.4

Git itself has no concept of users or user access controls.
From the description of the problem, it appears you're using
Gitolite [1] as a front-end to Git.

I can't unambiguously decode what "delete ssh admin git" means
because to me, it can mean at least two things:
1) You have deleted the SSH account used to push your Gitolite
   configuration on your server.
2) You have deleted the public key of the Gitolite admin user
   from your repository, and pushed.

In the case you have to log into your server (via SSH or other means)
first.

Then, in the first case,
1) Re-create the account;
2) Generate another SSH key for it;
3) Take the public part of this key, clone the Gitolite config
   repo locally (on the server), replace the admin's key there
   with the new key, commit, push.
4) Transport the private admin's key to the machine you're
   administering Gitolite from.

In the second case,
1) Clone the Gitolite config repo locally (on the server);
2) Revert the commit which nuked the admin's key (by using the
   regular `git revert` command, commit and push.

Note that this all implies you have enough permissions on your server.

1. https://github.com/sitaramc/gitolite

  reply	other threads:[~2015-07-07 13:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07 13:30 ssh admin git accidentally deleted agnes retnaningsih
2015-07-07 13:47 ` Konstantin Khomoutov [this message]
2015-07-07 13:49 ` Fredrik Gustafsson
     [not found]   ` <CAF1FN5BMTTatfTmVYjpKcqczefur3ETjbqyEk1vSmdruY82quw@mail.gmail.com>
2015-07-08  5:38     ` Fredrik Gustafsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150707164708.10cd2b169187636bef4dbe6e@domain007.com \
    --to=kostix+git@007spb.ru \
    --cc=agnes.monest@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).