Feature #6801

Provide adminuser and admingroup facts for OSes where it makes sense.

Added by Michael Stahnke about 1 year ago. Updated 2 months ago.

Status:Accepted Start date:03/21/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:library
Target version:-
Keywords: Affected Facter version:
Branch:
Votes: 2

Description

While most operating systems use root:root for ownership of system files, AIX uses system as the group by default. Thus, in many manifests, I have to insert a case statement to figure out the group for the root user. This is obviously done by a simple fact. This could be a default fact, as it may have uses in other operating systems, such as BSD and derivatives that use wheel as the default root group.

I realize this probably more of a ‘nice to have’ feature, but it’s not very difficult to implement, and would allow manifests to be cleaner, rather than having a switch or case statement.

History

Updated by James Turnbull about 1 year ago

  • Category set to library
  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Nigel Kersten

Updated by Nigel Kersten about 1 year ago

We should move away from the unix-centric “root” name here.

How about paired facts of:

  • adminuser
  • admingroup

?

Updated by Michael Stahnke about 1 year ago

That would meet all of my needs.

Updated by Nigel Kersten about 1 year ago

  • Subject changed from Provide rootgroup as a default fact to Provide adminuser and admingroup facts for OSes where it makes sense.
  • Status changed from Needs Decision to Accepted
  • Assignee deleted (Nigel Kersten)
  • Target version set to 1.6.0

Updated by Michael Stahnke about 1 year ago

As I was reading the title of the ticket, I wondered about the “for OSes where it makes sense.” Where doesn’t it make sense? The fact would be a limited usefulness if it only showed up on AIX, BSD or Windows. I guess I would expect it to be available on any OS that has the concept of an adminuser and/or an admingroup.

Updated by Nigel Kersten about 1 year ago

Some OSes may not have a reasonable concept of a default admin user and admin group, like Windows.

You can’t rely upon any particular user existing on Windows that is the equivalent of ‘root’ can you?

Updated by Michael Stahnke 11 months ago

  • Target version changed from 1.6.0 to 1.6.x

Updated by Ken Barber 6 months ago

  • Target version changed from 1.6.x to 186

Updated by Daniel Pittman 2 months ago

  • Target version deleted (186)

Also available in: Atom PDF