# Fail to do home configuration of the root user: Git error repository path is not owned by user

**URL:** https://forum.systemcrafters.net/t/fail-to-do-home-configuration-of-the-root-user-git-error-repository-path-is-not-owned-by-user/2098
**Category:** Guix
**Created:** [August 14, 2026, 4:12pm UTC](https://forum.systemcrafters.net/t/fail-to-do-home-configuration-of-the-root-user-git-error-repository-path-is-not-owned-by-user/2098 "2026-08-14T16:12:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Folaht](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/folaht/32/1145_2.png) [@Folaht](https://forum.systemcrafters.net/u/Folaht)
#### Post date: [August 14, 2026, 4:12pm UTC](https://forum.systemcrafters.net/t/fail-to-do-home-configuration-of-the-root-user-git-error-repository-path-is-not-owned-by-user/2098/1 "2026-08-14T16:12:06Z")

</div>

I’m trying to set up my root user’s home configuration because I prefer having my shell aliases for my root user too. I used the default generated `guix-home-config.scm` file just to be sure I did not make some coding error in there.

Yet, it still won’t work.

```shell
# guix home reconfigure ./guix-home-config.scm 
...
guix/ui.scm:1033:18: Git error: repository path '/home/folaht/.cache/guix/checkouts/7x37p6bub2newlthjx5kk2mco2aq44vxbqp5gwa3sifqxzfb3aqq' is not owned by current user

```

_/root/guix-home-config.scm_

```scheme
;; This is a sample Guix Home configuration which can help setup your
;; home directory in the same declarative manner as Guix System.
;; For more information, see the Home Configuration section of the manual.
(define-module (guix-home-config)
  #:use-module (gnu home)
  #:use-module (gnu home services)
  #:use-module (gnu home services shells)
  #:use-module (gnu services)
  #:use-module (gnu system shadow))

(define home-config
  (home-environment
    (services
      (append
        (list
          ;; Uncomment the shell you wish to use for your user:
          ;(service home-bash-service-type)
          ;(service home-fish-service-type)
          ;(service home-zsh-service-type)

          (service home-files-service-type
           `((".guile" ,%default-dotguile)
             (".Xdefaults" ,%default-xdefaults)))

          (service home-xdg-configuration-files-service-type
           `(("gdb/gdbinit" ,%default-gdbinit)
             ("nano/nanorc" ,%default-nanorc))))

        %base-home-services))))

```

---

<div class="post-metadata">

### Author: ![ced4rtree](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/ced4rtree/32/821_2.png) [@ced4rtree](https://forum.systemcrafters.net/u/ced4rtree)
#### Post date: [August 15, 2026, 1:07am UTC](https://forum.systemcrafters.net/t/fail-to-do-home-configuration-of-the-root-user-git-error-repository-path-is-not-owned-by-user/2098/2 "2026-08-15T01:07:19Z")

</div>

> [@Folaht](#):
>
> `guix/ui.scm:1033:18: Git error: repository path '/home/folaht/.cache/guix/checkouts/7x37p6bub2newlthjx5kk2mco2aq44vxbqp5gwa3sifqxzfb3aqq' is not owned by current user`

From this line, it seems like the guix home process is trying to use a cached checkout of the guix repository which is located in a directory owned by fohlat instead of root. I’m not sure what the official guidance for a multi-user use case of guix is here. My best guess (granted, I haven’t looked at the documentation, and don’t really have time at the moment) is that each user keeps their own copy of the guix repo and each one must be independently updated through a `guix pull` executed by that user.

---

<div class="post-metadata">

### Author: ![wxie](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@wxie](https://forum.systemcrafters.net/u/wxie)
#### Post date: [August 15, 2026, 2:28am UTC](https://forum.systemcrafters.net/t/fail-to-do-home-configuration-of-the-root-user-git-error-repository-path-is-not-owned-by-user/2098/3 "2026-08-15T02:28:32Z")

</div>

If it is for root, you may need log in as root, and use the environment of root.

---

<div class="post-metadata">

### Author: ![Folaht](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/folaht/32/1145_2.png) [@Folaht](https://forum.systemcrafters.net/u/Folaht)
#### Post date: [August 15, 2026, 6:57am UTC](https://forum.systemcrafters.net/t/fail-to-do-home-configuration-of-the-root-user-git-error-repository-path-is-not-owned-by-user/2098/4 "2026-08-15T06:57:41Z")

</div>

That works, although when I try to login as root, I get:

_Via GDM_

```shell
Unable to contact server configuration.
Unable to connect: File or directory not found

```

_Via terminal:_

```shell
This is the GNU system. Welcome!
Login: 
Password:
This is the GNU operating system, Welcome!

shepherd: error: shepherd instance already listening on `/var/run/shepherd/socket`.
# guix home -L ~/.dotfiles reconfigure ~/.dotfiles/config/home/root/my-home-config.scm --allow-downgrade
...
shepherd: error: shepherd instance already listening on `/var/run/shepherd/socket`.
...

```

Despite that, it worked?  
I guess I’ll put this one down as solved.
