1834509 Members
2638 Online
110068 Solutions
New Discussion

ADMIN HELP

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

ADMIN HELP

Hello All,

When I issue a ls -l on one of my systems. I see many users that show a group name as a number. There is about 50gb of very small files on this system. I want to flag all of the files that have a number in the groupid filed. I tried using find -group, however it reads the number as the correct name so it does not show. Any way to do this, I am sure there is, I am just not having much luck.

Example:

-rw-rw-r-- 1 lmworld 98 46080 Nov 16 2000 PreferredCare401K October 2000.xls
UNIX IS GOOD
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: ADMIN HELP

Robert

Apparently there is no group 98 in your /etc/group file. If you add one with a unique name you could run a find against that unique group name.

Pete

Pete
James Beamish-White
Trusted Contributor
Solution

Re: ADMIN HELP

Hiya,

Try find / -nogroup | xargs ls -ld

:-)

Cheers!
James
GARDENOFEDEN> create light
Pete Randall
Outstanding Contributor

Re: ADMIN HELP

Robert,

Better yet, try a find with -nogroup.

Pete

Pete
Pete Randall
Outstanding Contributor

Re: ADMIN HELP

Yeah, like James said (I should have refreshed before submitting).

Pete

Pete
Darrell Allen
Honored Contributor

Re: ADMIN HELP

Hi Robert,

Whether of not an entry exists in /etc/group for numeric group 98, "find . -group 98" should work.

If not, would you post your command line and results?

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Nobody's Hero
Valued Contributor

Re: ADMIN HELP

Thank you,
I didn't see the -nogroup option.
UNIX IS GOOD