Re: Possible to set initial groupids?
On Saturday 19 June 2004 14:18, Michael Satterwhite wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Saturday 19 June 2004 13:05, Jacob S. wrote:
> > Why not simply copy/paste the relevant portion of /etc/group
> > between machines so that you know the gids are the same across all
> > the machines? This would also save you the time of having to create
> > all the extra groups on each machine. I create/edit groups using
> > vim all the time and haven't had any problems.
>
> That would work fine for the groups added later, but not for the
> initial gids. "users" is the one to worry about. By the time the
> machine starts and I'm able to edit /etc/group, there are a slew of
> files that have been created as a member of the initial ids. That's
> where the problem is. I'd like to be able to specify the gids for the
> files created during installation.
And, as a variation on this question, is there any easy way to correct
the situation when it is wrong? I am always having to chmod 777 things
to be able to complete copies or whatever over nfs, and then to chown
-R places I`ve worked so that files are not owned by messagebus just
some number. It is a mess that I have got used to, but would like to
sort out. But how would I find all the files owned by me, for example,
to change them to an altered UID. And is editing /etc/passwd enough to
alter a UID -- I seem to remember there is another database as well.
Perhaps someone has written a script to do this?
--
richard
Reply to: