Modify

Ticket #458 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Default to numeric users/groups

Reported by: dclark Owned by: dclark
Priority: minor Milestone: Bcfg2 0.9.5 Release
Component: bcfg2-client Version:
Keywords: Cc:

Description

Numeric users and groups should be used by default in all Bcfg2 code, as there is no guarantee that UID 0 or GID 0 will be named "root". On AIX, GID 0 is named "system", so this causes permissions verifications to fail on AIX, which causes machines to show up as dirty.

If not already possible users should also be able to use numeric UID and GID values in info/:info files.

Attached is a patch (that doesn't actually work) that shows all the places in the code I could find the behavior for groups.

Fixing this bug is critical for Bcfg2 to support AIX.

Attachments

group-root-to-0.diff (6.7 KB) - added by dclark 15 years ago.
Places in the code that refer to the group root

Change History

Changed 15 years ago by dclark

Places in the code that refer to the group root

comment:1 Changed 15 years ago by dclark

  • Owner changed from desai to dclark
  • Status changed from new to assigned

I think this is fixed in r3409 and r3411 - need to test to make sure you can use numbers for owner/user and group in :info/info files, but tested AIX failure case and with these changes on GNU/Linux and Solaris, and everything seemed to work fine.

comment:2 Changed 15 years ago by dclark

  • Priority changed from critical to minor

comment:3 Changed 15 years ago by desai

  • Status changed from assigned to closed
  • Resolution set to fixed

Per conversation on irc, i think that we are now set.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.