0

I have a Debian 10 server. The etckeeper software is installed, so after executing

etckeeper init && etckeeper commmit "Initial commit"

the /etc in now a git repo.

I need to clone ssh://git@111.122.133.144/etc/ to my local computer, but I get the following error:

fatal: '/etc/' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

It is likely a permission problem, so cloning with root user would work. But how to clone it without allowing SSH server to login as root, just by using a git user?

Thanks!

-1

I think is a permissions issue, then if you want other user to be able to access to the /etc folder, you can try to add this user to the root group or modify the permissions of the folder with the command chown -R :user /etc the flag -R means recursive.

Hope this works for you, if not we can try other things.

Regards.

Pedro.

  • DO NOT DO THIS. Some files in /etc are secret for a reason. If you change permissions recursively, you will destroy whatever security measures might have been in place. The system may even refuse to boot. Additionally, without setting an appropriate chmod value, group ownership may not give access. – Daniel B Jul 18 at 14:48
  • the real problem is when you change the user, not the group – mersey10 Jul 18 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.