etckeeper: clone /etc repo without root permission

by klor   Last Updated July 18, 2019 15:01 PM - source

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://[email protected]/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!



Answers 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.

mersey10
mersey10
July 18, 2019 14:45 PM

Related Questions


Fix permissions of server after accidental chmod debian

Updated September 21, 2017 22:01 PM

ACL for users not working correctly [Debian]

Updated October 10, 2017 17:01 PM


Permissions Preventing File Creation (NFS)

Updated October 11, 2017 17:01 PM

Permission denied for /usr/bin/ as root

Updated October 07, 2017 18:01 PM