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

Re: OT: Permission issue



Ralf Mardorf wrote:
> Bob Proulx wrote:
> >   find / -xdev -user 1000 -exec chown 1001 {} +
> >   find / -xdev -group 1000 -exec chgrp 1001 {} +
> 
> "Sharing a mail folder between Linux and FreeBSD":
> 
> http://lists.freebsd.org/pipermail/freebsd-questions/2013-January/subject.html#start

That is a sad tale.  Sad because you had such problems.  And sad
because those problems could have been avoided.

I read through the entire thread.  I see that you were given basically
the same advice on the FreeBSD list as I gave here.  Which was to set
the uids the same on both systems.  And with a very similar find
command too! :-) (Mine was more efficient however. <chucke/>) But
there were several mistakes made executing the commands.  Fortunately
you were given help along the way which I think says nice things about
the FreeBSD mailing list.  FreeBSD seems to be slightly more
complicated by having a binary form of the /etc/passwd file that must
be compiled after changes to it are made.  (I didn't know that.)  That
binary compilation step seems to have added confusion there.  Nothing
like that exists on Debian.

But nothing there gives me any indication that the strategy of using
the same uids everywhere is not the best strategy.  I don't think that
just become someone makes a typing mistake and types in the wrong
command that it invalidates the strategy.  If so then there couldn't
be any good strategy because it is always possible to do the wrong
thing and break anything.  Really all that can be done is to be
careful and think about what is happening.  If a mistake is made,
which is always possible, then remain calm and work through it.
Definitely having a backup is always a risk management good plan.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: