Code Monkey home page Code Monkey logo

Comments (3)

twpayne avatar twpayne commented on May 18, 2024

Thanks for the bug report.

The error occurs when chezmoi tries to determine your user group to populate the chezmoi.group template variable, specifically in these lines.

This is a strange error, as it looks like your user has group 210, but group 210 doesn't exist.

Please can you post the output of the following commands:

$ id
$ grep `whoami` /etc/passwd
$ awk -F: '$3 == "210"' /etc/group

I suspect this is a configuration error on your machine and you should change your user group to an existing group using the usermod -g GROUP command.

from chezmoi.

BeastyBlacksmith avatar BeastyBlacksmith commented on May 18, 2024
$ id
uid=10201(christ) gid=210(niskgf) groups=210(niskgf)

The other two doesn't yield any results. When I talked to the IT staff about this they mentioned that our accounts are not managed in the local files but via an external directory service.
Also I don't have permission to change my group.

from chezmoi.

twpayne avatar twpayne commented on May 18, 2024

OK, I see what's happening here. chezmoi is written in Go, and Go's standard library function for looking up groups reads from /etc/group. /etc/group does not exist on your system so the lookup fails. I'll add a work-around.

from chezmoi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.