LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 09:46 AM   #1
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

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, 10:51 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, 11:54 AM   #3
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

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, 01:14 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, 01:55 PM   #5
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

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, 02:10 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, 02:41 PM   #7
acampbell
Member
 
Registered: Nov 2003
Location: London
Distribution: Debian
Posts: 118

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


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 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 01:08 PM
cannot stat /etc/X11/X (no such file or directory) theabyyss Linux - Software 2 02-12-2008 07:15 PM
smbclient copy problem (cant stat file...) taiwf Linux - Networking 6 08-01-2005 05:27 PM
stat directory minil Programming 5 04-22-2005 12:40 AM
error: stat of /var/log/ppp/connect-errors failed: No such file or directory Niceman2005 Linux - Newbie 0 01-20-2005 12:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:47 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