LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2012, 12:22 PM   #31
mosmuller
Member
 
Registered: Dec 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled

cluster2:~ # updatedb
/usr/bin/find: /: No such file or directory

locate sa.2011_11_11 (that is a file into /var/log/sa), has no output.
 
Old 01-05-2012, 12:31 PM   #32
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Alright. Atleast we now have some direction. Either there is something wrong with /usr/bin/find itself because updatedb command require /usr/bin/find or something wrong with PATH variable. I am assuming you are logged in as root and if you are doing su then you are doing that by typing: su - root

Are both cluster servers are on same version? If yes, then try this rename find on the problematic server as follows:

Code:
mv /usr/bin/find /usr/bin/find.old
Once done copy over the find from other server to this server under /usr/bin

If it still does not work then it is not find binary issue rather an issue with your profile or with PATH variable.

Last edited by T3RM1NVT0R; 01-05-2012 at 12:33 PM.
 
Old 01-05-2012, 06:51 PM   #33
mosmuller
Member
 
Registered: Dec 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
Ok, I am logged in as root. I`ve moved find as find.old as you asked and copied from other server with same version its find file.

Next I run updatedb, now here is what I get:

cluster2:~ # updatedb
/usr/bin/updatedb: line 203: /usr/bin/find: Permission denied
 
Old 01-05-2012, 07:12 PM   #34
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Edit perms/ownerships on new find to match orig and/or the other (working) server.
You may also need to fix the SELinux settings if you have that. Try 'ls -lZ' to see.
 
Old 01-05-2012, 08:01 PM   #35
mosmuller
Member
 
Registered: Dec 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
cluster2:/ # updatedb
/usr/bin/find: /: No such file or directory
cluster2:/ # ls -lZ
/bin/ls: invalid option -- Z
Try `/bin/ls --help' for more information.


Well, permissiones where different, but now are equal on both servers (755). But as you can see above, updatedb continues with problems.
 
Old 01-05-2012, 08:17 PM   #36
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Your version of ls apparently doesn't support the -Z option. When you see an error message, try to heed it. In this case reissue the command with "ls -l" instead.
 
Old 01-06-2012, 07:35 AM   #37
mosmuller
Member
 
Registered: Dec 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
cluster2:~ # updatedb
/usr/bin/find: /: No such file or directory
cluster2:~ # ls -l
total 116
-rw------- 1 root root 18927 Jan 5 23:02 .bash_history
-rw-r--r-- 1 root root 1332 Nov 23 2005 .exrc
-rw------- 1 root root 33 Dec 13 2010 .forward
-rw------- 1 root root 33 Dec 13 2010 .forward.old
drwx------ 2 root root 4096 Jan 6 10:12 .gnupg
drwxr-xr-x 2 root root 4096 Nov 16 2007 .kbd
-rw------- 1 root root 69 Nov 29 10:05 .lesshst
drwxr-xr-x 3 root root 4096 Dec 27 15:48 .mc
-rw------- 1 root root 1024 Apr 25 2009 .rnd
drwx------ 2 root root 4096 Jul 5 2008 .ssh
-rw-r--r-- 1 root root 12288 Nov 18 14:22 .vacation.db
-rw-r--r-- 1 root root 131 Dec 13 2010 .vacation.msg
-rw-r--r-- 1 root root 131 Dec 13 2010 .vacation.old
-rw------- 1 root root 9190 Dec 27 15:26 .viminfo
drwx------ 2 root root 4096 Sep 22 2010 .w3m
drwxr-xr-x 2 root root 4096 Dec 9 2010 .wapi
drwxr-xr-x 2 root root 4096 Apr 22 2006 bin
-rw-rw-rw- 1 root root 163 Dec 28 10:37 mario
-rw-r--r-- 1 root root 1298 Jul 11 2008 server.crt
-rw-r--r-- 1 root root 765 Jul 11 2008 server.csr
-rw-r--r-- 1 root root 0 Jul 11 2008 server.key
-rw-r--r-- 1 root nogroup 6 Jun 28 2008 squid.pid
 
Old 01-06-2012, 12:03 PM   #38
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

We need to find the permissions set on the new find file that you have copied from another server. Run the following command:

Code:
ls -l /usr/bin | grep find
 
Old 01-08-2012, 11:51 AM   #39
mosmuller
Member
 
Registered: Dec 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
cluster2:~ # ls -l /usr/bin | grep find
-rwxr-xr-x 1 root root 132540 Jan 5 21:49 find
-rwxr-xr-x 1 root root 132540 Apr 22 2006 find.old
-rwxr-xr-x 1 root root 24106 Apr 22 2006 find2perl
-rwxr-xr-x 1 root root 10505 Apr 22 2006 findaffix
-rwxr-xr-x 1 root root 4603 May 29 2008 findsmb
-rwxr-xr-x 1 root root 6160 May 2 2006 hal-find-by-capability
-rwxr-xr-x 1 root root 6172 May 2 2006 hal-find-by-property
-rwxr-xr-x 1 root root 1280 Apr 24 2006 mono-find-provides
-rwxr-xr-x 1 root root 1856 Apr 24 2006 mono-find-requires


I am logged as root
 
Old 01-08-2012, 12:46 PM   #40
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

find binary permissions look ok. But here is something unusual that I see in your previous post:

Code:
cluster2:~ # updatedb
/usr/bin/updatedb: line 203: /usr/bin/find: Permission denied
Try this:

1. Rename existing /usr/bin/updatedb /usr/bin/updatedb.old
2. I have attached updatedb.txt file with this post. So rename it from updatedb.txt updatedb
3. Copy it to /usr/bin/
4. Run the command updatedb.
4. And then execute locate command as mentioned in previous posts.

If that does not work then paste the output of the following commands:

Code:
cat /usr/bin/updatedb
Run the above on problematic server and paste the output. Then run the same on working server and paste the output.
Attached Files
File Type: txt updatedb.txt (9.5 KB, 22 views)
 
Old 01-08-2012, 05:42 PM   #41
mosmuller
Member
 
Registered: Dec 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
Here is the output of running update after doing the replace with the file you sent me:

cluster2:~ # updatedb
-bash: /usr/bin/updatedb: Permission denied

Here I attach the output of the cat command:

cat.txt
 
Old 01-08-2012, 05:47 PM   #42
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Did you change the permissions of updatedb which you have copied from my previous thread?

Make sure it show the permissions as 755. If not you can change using the following command:

Code:
chmod 755 /usr/bin/updatedb
 
Old 01-09-2012, 12:36 PM   #43
mosmuller
Member
 
Registered: Dec 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
cluster2:~ # chmod 755 /usr/bin/updatedb
cluster2:~ # updatedb
/usr/bin/find: /: No such file or directory
 
Old 01-10-2012, 04:39 PM   #44
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Alright we have tried everything so far and now it appears that the incident that took place on 22nd November really messed up the things. If possible could you reboot the server and paste the output of the following command:

Code:
cat /var/log/boot.msg
 
Old 01-10-2012, 07:39 PM   #45
mosmuller
Member
 
Registered: Dec 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
Here I post you boot.txt with the output:

boot.txt
 
  


Reply



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
[SOLVED] Error: Missing Dependency: /usr/bin/rebuild-security-providers is needed package java jsaravana87 Linux - Server 1 09-26-2011 09:13 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
SOme commands are not found in /usr/bin directory bachelorlko Linux - Newbie 9 11-26-2008 01:19 AM
RH Enterprise Linux3: Rebuild /usr/bin? AndrewBS42 Linux - Enterprise 15 08-17-2006 03:54 PM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:51 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
Open Source Consulting | Domain Registration