LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2004, 01:54 PM   #1
HadesThunder
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281

Rep: Reputation: 30
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 /]#
 
Old 04-10-2004, 03:32 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"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
 
Old 04-10-2004, 04:01 PM   #3
HadesThunder
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 9.1
Posts: 281

Original Poster
Rep: Reputation: 30
Thats fixed it thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
501 invalid domain name -- when trying to send mail (SMTP) FUXC Linux - General 8 05-01-2012 07:04 PM
Lexar Media JumpDrive 512MB JDA512-00-501 problem EnigmaX Linux - General 2 05-29-2005 12:01 PM
I know this is off subject (cisco pix 501) phatboyz Linux - Security 0 10-18-2004 04:56 PM
How do i find all the set UID/GID file on my current system Linux_interest Linux - Newbie 1 09-13-2004 11:09 AM
PAM prob... can't find certain file Newbulus_Maximu Linux - General 0 09-08-2002 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration