messing with uid/gid in passwd

Jerry McAllister jerrymc at msu.edu
Fri Feb 16 16:12:56 UTC 2007


On Fri, Feb 16, 2007 at 05:07:37PM +0200, Petre Bandac wrote:

> hallo
> 
> I have the following problem
> 
> I hourly rsync data from another computer to my bsd machine and the
> transferred files have different uid that the user I'd like to use them
> (preserve their initial uid/gid)
> 
> is there a problem if I manually change the uid of some (already
> created) users in passwd (like for mysql, www, postfix)

Do you mean on the BSD machine?
There should be no problem _if_: 
  The UID & GID do not conflict with another existing user or group.
and
  You get all of the incidences of the use of that user's UID & GID
  changed on all of that user's files.

But, if it conflicts or you miss some files somewhere, it can
come back and bite you.   Use find(1) with -group and then with -user
to look for the files.

////jerry

> 
> thanks,
> 
> petre
> 
> -- 
> 
> Petre Bandac
> 
> Network Scientist
> 
> -
> petre at kgb.ro
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list