On Wed May 03 2000 at 14:22, "David Knaack" wrote:

> I recently intalled some software on my RH6.1 box,
> and some of the files have come up with a number for
> the user and group, instead of 'root'.
> 
> ls -l gets me:
> -rwxr-xr-x   1 4403     300        102908 Mar 16 17:51 setiathome
> -rw-rw-r--   1 root     root            0 May  3 08:56 state.sah
> 
> I also get:
> 
> drwxrwsr-x   8 uucp     143          4096 Jan 12 20:10 jdk1.2.2
> 
> Why would some files come up with 'root', and some with just
> the nubers?  They were installed from the same archive.

Because the user and group names for those values are not listed in
/etc/group or /etc/passwd.

User and group names are really numbers with names as aliases.  To see
the raw uninterpreted UID and GID numbers in a directory listing, try:

        ls -ln

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).

Note that the s bit on the group permissions is set.  This forces all
(new) files in that directory to be set GUI the same as the directory
(in this case, GID 143).

> And whats with the uucp on the JDK files?  Should I change
> all that to root?

It's a happy coincidence that the user id from a file on a tarball
corresponds to the uid used for user "uucp" on your own systems.

Do whatever you like about it (with thought to security etc).  Just
take care of the permissions on any of the files... other users might
need to use them.

So you would do:

        chown -R root.root jdk1.2.2

which would be the same as doing:

        chown -R 0.0 jdk1.2.2

> Thanks

Lots of man pages describe all this... ls, ln, chown, chgrp and so on.
They are all standard unix filesystem tools.

Cheers
Tony
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  Tony Nugent <[EMAIL PROTECTED]>    Systems Administrator, RHCE
  GrowZone OnLine       (a project of) GrowZone Development Network
  POBox 475 Toowoomba Oueensland Australia 4350    Ph: 07 4637 8322
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-

Reply via email to