LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   find / -gid 501 = prob (https://www.linuxquestions.org/questions/linux-newbie-8/find-gid-501-%3D-prob-168454/)

HadesThunder 04-10-2004 12:54 PM

find / -gid 501 = prob
 
Hi. I am trying to run find to look for any files belonging to user gid 501. I run the command. It takes ages and eventually starts checking my floppy drive. I have checked in /etc/group and user 501 exists. Any advice? The whole script is below.

[root@spc1-seve2-5-0-cust252 root]# cd /
[root@spc1-seve2-5-0-cust252 /]# find / -gid 501
find: . changed during execution of find
[root@spc1-seve2-5-0-cust252 /]#

jailbait 04-10-2004 02:32 PM

"Hi. I am trying to run find to look for any files belonging to user gid 501. I run the command. It takes ages and eventually starts checking my floppy drive. I have checked in /etc/group and user 501 exists. Any advice? The whole script is below."

You are checking for group id 501 and I think that you intend to check for user id 501. So change find / -gid 501 to
find / -uid 501

Also, do you expect to find any of these files anywhere other than in /home? If not then you can save a lot of time with:
find /home -uid 501

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

HadesThunder 04-10-2004 03:01 PM

Thats fixed it thanks.


All times are GMT -5. The time now is 03:12 AM.