On May 6, 2008, at 8:59 AM, Mike Frysinger wrote: > On Saturday 03 May 2008, Garrett Cooper wrote: >> On Sat, May 3, 2008 at 4:22 PM, Mike Frysinger <[EMAIL PROTECTED]> >> wrote: >>> On Saturday 03 May 2008, Garrett Cooper wrote: >>>> are a lot of UID's not present in the system passwd file on >>>> NIS/Kerberos enabled systems, correct? Then again if they exist in >>>> /etc/passwd, then maybe it's a moot point, apart from the fact >>>> that the >>>> UID won't be the same... >>> >>> i realize that, but as soon as you start reading/writing /etc/passwd >>> and /etc/group, you've broken this sort of flexibility. >>> IDcheck.sh is >>> already broken in this regard, so ... >> >> This script is trivial and the use case should probably be >> restricted to >> local users only. Besides, NIS/Kerberos values for users override >> local >> values, with exception of single-user mode setup, right? So, let's >> just >> take id(1) out of the equation together.. > > just cut id and /etc/passwd and /etc/group out of the question. > create a > dummy file and run `chown` and `chgrp` on it. if it fails, we need > to append > the respective file. > -mike
That's a very out of the box solution, but brilliant. It avoids having to deal with local or remote settings altogether and yields the same desired result with greater clarity. I'll see about revising IDcheck.sh again and resubmit. -Garrett ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list