LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 12-01-2003, 10:46 AM   #1
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 116

Rep: Reputation: 16
lsattr: no such file or directory while trying to stat...


Following the suggestion in the Security Quickstart HOWTO I did:
/usr/bin/lsattr `echo $PATH | tr ':' ' '` | grep i--

This produced:

/usr/bin/lsattr: No such file or directory while trying to stat /usr/local/java.sun/java.current/bin

I did have such a directory some time ago but I deleted it. Is there any way I can delete thiis reference? (fsck did not do it).
 
Old 12-01-2003, 11:51 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,766
Blog Entries: 54

Rep: Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976
I did have such a directory some time ago but I deleted it.
If you mean it's a symbolic link that points to a non-existing file or directory, just remove the symbolic link.
 
Old 12-01-2003, 12:54 PM   #3
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 16
No, I can't find any relevant symlink. If I make the appropriate directory the message disappears but when I delete it it comes back. I can only suppose there is an inode which points to this non-existent directory but I don't know how to find it.
 
Old 12-01-2003, 02:14 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,766
Blog Entries: 54

Rep: Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976
Try this then (w/o outer quotes): "find / -type l -printf "%p %l\n"|grep -Eie "(java|bin)""
If there's any results, then the first column will contain the symlink and the second column the file it points to, which you should grep for.
 
Old 12-01-2003, 02:55 PM   #5
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 16
No luck, I'm afraid. No links pointing to that non-existent path show up; and locate gives the same.
 
Old 12-01-2003, 03:10 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,766
Blog Entries: 54

Rep: Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976
Oh, Fsck. Just treeing up the wronk bark I guess. Isn't this just a leftover in your $PATH statement? If you "echo $PATH", does it contain /usr/local/java.sun/java.current/bin? To remove it, you must remove it from the PATH statement in the initialisation files your shell uses (in ~/). If it's globally set, check in /etc.
 
Old 12-01-2003, 03:41 PM   #7
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 16
Yes!! Brilliant, thank you very much. Now working correctly. We live and learn...
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/proc/stat file problem for cpu usage arunka Programming 3 04-23-2014 02:08 PM
cannot stat /etc/X11/X (no such file or directory) theabyyss Linux - Software 2 02-12-2008 08:15 PM
smbclient copy problem (cant stat file...) taiwf Linux - Networking 6 08-01-2005 06:27 PM
stat directory minil Programming 5 04-22-2005 01:40 AM
error: stat of /var/log/ppp/connect-errors failed: No such file or directory Niceman2005 Linux - Newbie 0 01-20-2005 01:29 AM


All times are GMT -5. The time now is 07:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration