On Wed May 03 2000 at 18:48, "David Knaack" wrote:
> > > Why would some files come up with 'root', and some with just
> > > the nubers? They were installed from the same archive.
> >
> > You have very likely got these "foreign" numbers from
> > extracting files from tarballs as root user. (Although you
> > say this is a fresh rh61 install, strange).
>
> Correct,
[ heh... been there, done that :-]
> am I supposed to reset the user and group after I extract the
> files?
That's probably what you need to do.
You can give tar some parameters that will change all the IDs in
the tarball to whatever you want. By default the root user
extracts tarballs and the UIDs and GIDs are preserved. However
for ordinary users, these are automatically changed to be owned by
that user no matter what it is in the tarball.
> > chown -R root.root jdk1.2.2
>
> hmm, didn't realise you could change both with that notation,
> I've been using chgrp too. Thats handy :)
Yep, chown will do gid as well, and will accept either numbers or
uid/gid names (as per /etc/group and /etc/passwd).
> > Lots of man pages describe all this... ls, ln, chown, chgrp
> > and so on. They are all standard unix filesystem tools.
>
> yup, I know how to change them, what I wanted to know was why
> they appeared to be 'broken'.
man tar :-)
Cheers
Tony