usergroupadd_unsupported.go 404 B

123456789101112
  1. // +build !linux
  2. package idtools
  3. import "fmt"
  4. // AddNamespaceRangesUser takes a name and finds an unused uid, gid pair
  5. // and calls the appropriate helper function to add the group and then
  6. // the user to the group in /etc/group and /etc/passwd respectively.
  7. func AddNamespaceRangesUser(name string) (int, int, error) {
  8. return -1, -1, fmt.Errorf("No support for adding users or groups on this OS")
  9. }