Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User and group errors in sys-git dom0 salt #43

Closed
kennethrrosen opened this issue Mar 27, 2024 · 3 comments
Closed

User and group errors in sys-git dom0 salt #43

kennethrrosen opened this issue Mar 27, 2024 · 3 comments
Labels
T: bug Something isn't working

Comments

@kennethrrosen
Copy link

Commitment

I confirm that I have read the following resources:

Brief summary

When attempting to run sudo qubesctl state.apply sys-git.install-client in dom0 per the documentation, errors related to the placement of dotfiles occur because user user is not available Group user is not available as, I believe, dom0 isn't always simply named user by the user.

Steps to reproduce

Follow instructions to "Dom0 Update with Git". Run sudo qubesctl state.apply sys-git.install-client per instructions.

Expected behavior

Process completes without errors.

Actual behavior

[ERROR   ] User user is not available Group user is not available
[ERROR   ] {'/home/user/.config/git/template/hooks': {'directory': 'new'}}
[ERROR   ] {'/home/user/.config/git/shell': {'directory': 'new'}}
[ERROR   ] {'/home/user/.local/bin': {'directory': 'new'}}
[ERROR   ] {'/home/user/.config/git/shell': {'directory': 'new'}}
[ERROR   ] {'/home/user/.local/bin': {'directory': 'new'}}
[ERROR   ] User user is not available Group user is not available
[ERROR   ] {'/home/user/.local/bin': {'directory': 'new'}}
[ERROR   ] User user is not available Group user is not available
local:
----------
          ID: dotfiles-copy-git-home
    Function: file.recurse
        Name: /home/user
      Result: False
     Comment: User user is not available Group user is not available
     Started: 19:01:25.136938
    Duration: 27.153 ms
     Changes:   
----------
          ID: dotfiles-fix-executables-git-template-dir-home
    Function: file.directory
        Name: /home/user/.config/git/template/hooks
      Result: False
     Comment: No directory to create /home/user/.config/git/template/hooks in
     Started: 19:01:25.164330
    Duration: 2.333 ms
     Changes:   
              ----------
              /home/user/.config/git/template/hooks:
                  ----------
                  directory:
                      new
----------
          ID: dotfiles-fix-executables-git-shell-dir-home
    Function: file.directory
        Name: /home/user/.config/git/shell
      Result: False
     Comment: No directory to create /home/user/.config/git/shell in
     Started: 19:01:25.167138
    Duration: 4.096 ms
     Changes:   
              ----------
              /home/user/.config/git/shell:
                  ----------
                  directory:
                      new
----------
          ID: dotfiles-fix-executables-git-bin-dir-home
    Function: file.directory
        Name: /home/user/.local/bin
      Result: False
     Comment: No directory to create /home/user/.local/bin in
     Started: 19:01:25.174142
    Duration: 2.355 ms
     Changes:   
              ----------
              /home/user/.local/bin:
                  ----------
                  directory:
                      new

----------
          ID: dotfiles-fix-executables-git-shell-dir-skel
    Function: file.directory
        Name: /home/user/.config/git/shell
      Result: False
     Comment: No directory to create /home/user/.config/git/shell in
     Started: 19:01:29.038202
    Duration: 1.826 ms
     Changes:   
              ----------
              /home/user/.config/git/shell:
                  ----------
                  directory:
                      new
----------
          ID: dotfiles-fix-executables-git-bin-dir-skel
    Function: file.directory
        Name: /home/user/.local/bin
      Result: False
     Comment: No directory to create /home/user/.local/bin in
     Started: 19:01:29.040329
    Duration: 1.771 ms
     Changes:   
              ----------
              /home/user/.local/bin:
                  ----------
                  directory:
                      new
----------
          ID: dotfiles-copy-sh-home
    Function: file.recurse
        Name: /home/user/
      Result: False
     Comment: User user is not available Group user is not available
     Started: 19:01:29.042306
    Duration: 4.555 ms
     Changes:   
----------
          ID: dotfiles-fix-executables-sh-dir-home
    Function: file.directory
        Name: /home/user/.local/bin
      Result: False
     Comment: No directory to create /home/user/.local/bin in
     Started: 19:01:29.047105
    Duration: 1.876 ms
     Changes:   
              ----------
              /home/user/.local/bin:
                  ----------
                  directory:
                      new
----------
          ID: dotfiles-copy-x11-home
    Function: file.recurse
        Name: /home/user/
      Result: False
     Comment: User user is not available Group user is not available
     Started: 19:01:34.358719
    Duration: 6.51 ms
     Changes: 

.

@kennethrrosen kennethrrosen added the T: bug Something isn't working label Mar 27, 2024
@ben-grande
Copy link
Owner

ben-grande commented Mar 27, 2024 via email

@ben-grande
Copy link
Owner

I will fix this but multi-user Dom0 won't work. It is also possible to change the default-user preference of a qube to create a different username. This, unfortunately is an edge case also.

ben-grande added a commit that referenced this issue Apr 30, 2024
Useful when Dom0 has the non-default username, less useful for DomUs.

Fixes: #43
@ben-grande
Copy link
Owner

ben-grande commented Apr 30, 2024

Please update Qusal and test again and report back. I did quick manual tests only by editing /etc/group manually to reorder the usernames of the qubes group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants