Leslie Satenstein wrote: > I have a backup drive onto which I collect data from Ubuntu, Fedora, > Centos, and occasionally other data from a virtual system. > > Root in Ubuntu is predefined as #1000, in Fedora it is predefined as #500. > > I can force non-root user numbers and groups to commence at 1500, so > that backing up files from UBUNTU for user xyz will be have the same > userid as in Fedora , Centos, or SUSE. > > How can I convert root id to a common number across the > distributions. Is this possible? > > Leslie > > > *------------------ > > * > > Regards > > * > Mr. Leslie > * > *Leslie Satenstein > * > voice: 514-369-1685 > mailto:[email protected] > > ------------------------------------------------------------------------ > > _______________________________________________ > mlug mailing list > [email protected] > https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca >
Root user is id 0, gid 0. I've never seen it anything else. As for uid/gid starting points, check out /etc/login.defs (name may vary). It contains the ranges for user ids and group ids, including the starting number. Of course you will have to create all your users in the same order for the ids to match up. It's a lot easier to just force the user id during the users creation. As someone suggested, you could setup a directory service (ldap, nis, ...) and store your user info there, but it may be more than you want to get into. (It is a good learning exercise though.) David _______________________________________________ mlug mailing list [email protected] https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca
