home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.linux.misc      Linux-specific topics not covered by oth      135,536 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 134,143 of 135,536   
   Richard Kettlewell to Lars Poulsen   
   Re: Cleaning up group identities   
   31 Dec 25 16:56:21   
   
   From: invalid@invalid.invalid   
      
   Lars Poulsen  writes:   
   > It seems that there may never be a completely clean solution to   
   > this, because when you build a new system, it sets up it range of UIDS   
   > and GIDS for system services, and by necessity, it also creates   
   > at least one "user" account. Then, when you port in the user   
   > partitions from the old system, you need to bring in the parts   
   > of /etc/passwd, /etc/shadow, /etc/group and related configuration   
   > items that match the files in those imported file systems,   
   > including the "additional users" field in /etc/group.   
      
   This is the point at which you have to reassign UIDs/GIDs, of course.   
      
   > Part of the immediate cleanup will be moving old user-ids out of   
   > the 500-999 range. When doing that, it would be good to also align   
   > the UIDs and GIDs of the users. (Which means setting aside a range   
   > groups like "family", "friends", "coworkers" that do not have a   
   > unique user associated.)   
   >   
   > It seems to me, that the best solution would be to provide a hook   
   > in the installation process to bring in the old passwd and group   
   > files to merge them in.   
   >   
   > And by the way, is there a canonical list of "preferred" values   
   > for system service UID and GID?   
      
   AFAIK there is not (and cannot be) any such thing, at least at the   
   global level: system UIDs/GIDs vary between distributions and in some   
   cases are dynamic.   
      
   --   
   https://www.greenend.org.uk/rjk/   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca