[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LSB specification for adding users and groups



-----BEGIN PGP SIGNED MESSAGE-----


On Wed, 16 Jun 1999, Galen Hancock wrote:

> > find -uid 8 -exec chown mail \{\} \;
> > find -gid 8 -exec chgrp mail \{\} \;
> 
> I don't think that would be enough, because new files with the old
> [ug]ids could be created while find is running. Some programs could be
> running that rely on the numbers as they existed when they started.
> (Some programs could even have uids compiled into them.)

If you change the passwd/group files before running the find, this
wouldn't be a problem.  It could cause some havoc if mail programs (for
example) couldn't access their files for the few minutes it takes to run
the find though.  Stopping MTAs before running the find might alleviate
that problem.

Someone else mentioned that running chown will strip the set[ug]id bit.
This didn't happen when I tried it.  Is it supposed to?

Is there a good reason why a program would use a uid instead of a uname?


Steve Tonnesen.


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBN2hMqI2+iKf+FgzlAQHOagP/Q4VAmnZizJy+TG0l0RnFvoq+o1k1biaH
/jcjbJ+7B5lsja/oPqB9Tod/xPo3Sz4j11zK26eSi8TmWvVGN+f0zyPkQjPpajes
z7efAEWquFOHQ9tra/OaZ4p2eMZ1qEhzINxZy/FNXKwDjNw2Cywj1xUjzrbfBi4Y
+a6CVy2+K+Q=
=aUTp
-----END PGP SIGNATURE-----


Reply to: