[NTLUG:Discuss] Is there a Better way to extract a directory owner's UID/GID?
Patrick R. Michaud
pmichaud at pobox.com
Thu Mar 9 14:22:01 CST 2006
On Thu, Mar 09, 2006 at 01:38:15PM -0600, Eric Schnoebelen wrote:
>
> Richard Geoffrion writes:
> - Patrick R. Michaud wrote:
> - >On Thu, Mar 09, 2006 at 12:53:14PM -0600, Richard Geoffrion wrote:
> - >>Issue: Need to change ownership of a file to be owned by the owner of
> - >>the current(or parent) directory
> - >
> - >FWIW, many chown commands support a --reference= option:
>
> ?Many? As far as I can tell, only the GNU version supports
> that. NetBSD, HP-UX, SCO UNIX, POSIX.2 all lack that extension.
>
> Just something to be aware of when portability is
> important.
Okay, I should've said "some" instead of "many". :-) I didn't know
how widespread the option was.
(The whole reason I said "many" in the first place was to indicate
that it wasn't universal.)
Pm
More information about the Discuss
mailing list