LinuxQuestions.org
Visit Jeremy's Blog.
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 10-28-2010, 10:08 AM   #1
macking
LQ Newbie
 
Registered: May 2010
Posts: 27

Rep: Reputation: 0
Errors at login, always worked fine


Have a server that I've logged into for months.

Today when I login, it logs in but I see the following:

Last login: Mon Aug 16 10:15:43 2010 from 192.168.1.147
-bash: id: command not found
-bash: [: =: unary operator expected
-bash: id: command not found
-bash: dircolors: command not found
-bash: /usr/bin/id: Permission denied
-bash: [: =: unary operator expected
-bash: /usr/bin/id: Permission denied
-bash: [: =: unary operator expected
-bash: id: command not found
-bash: id: command not found

I can still SU so I have control, but not sure what is happening here.

Would LOVE some help
 
Old 10-28-2010, 11:41 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by macking View Post
-bash: /usr/bin/id: Permission denied
[EDIT]Maybe no a $PATH issue (but show us 'echo $PATH' anyway), did you change file group/ownership? What does 'stat /usr/bin/id' return?[/EDIT]

Last edited by unSpawn; 10-28-2010 at 11:43 AM.
 
Old 10-28-2010, 11:50 AM   #3
macking
LQ Newbie
 
Registered: May 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Tried stat /usr/bin/id and got this: -bash: stat: command not found

Did $PATH and got this:

-bash: /usr/kerberos/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/chrootssh/bin:/usr/X11R6/bin:/home/tim/bin: Permission denied


Does that help?
 
Old 10-28-2010, 11:52 AM   #4
macking
LQ Newbie
 
Registered: May 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Looks like I can't use many commands, like scp, ssh, etc.

I am part of WHEEL still, so I can su just fine. Sudo says command not found.

No changes to the environment at all.
 
Old 10-28-2010, 12:40 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by macking View Post
Tried stat /usr/bin/id and got this: -bash: stat: command not found
Could try '/usr/bin/stat /usr/bin/id' but I doubt that'll work since 'stat' resides in /usr/bin too...


Quote:
Originally Posted by macking View Post
Did $PATH
I asked for 'echo $PATH'.


In any case it can't be a $PATH issue since executing a non-existing command (say 'perlddebug') should return "No such file or directory". The "command not found" could be a literal reference to /usr not being mounted (check with '/bin/mount' or '/bin/grep usr /proc/mounts') but then I can't place the "Permission denied"...


Quote:
Originally Posted by macking View Post
No changes to the environment at all.
Best review changes since last login using the available package management tools (if any) that come with the distro (which one?) and review /var/log log files.

Last edited by unSpawn; 10-28-2010 at 12:42 PM.
 
Old 10-28-2010, 01:20 PM   #6
macking
LQ Newbie
 
Registered: May 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Looked at /var/log messages and secure, nothing out of the ordinary. Suddenly started at 03am this morning.

I noticed it because a monitoring script started failing at 03:06:14 am



-bash: /usr/bin/stat: Permission denied


-bash: /usr/bin/id: Permission denied


echo $PATH
/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/chrootssh/bin:/usr/X11R6/bin:/home/timmy/bin



RedHat Enterprise Linux 5.1

Not sure what to do next???
 
Old 10-28-2010, 04:37 PM   #7
Dblackner
LQ Newbie
 
Registered: Oct 2010
Location: If you guys know Michigan, I'm between the palm and thumb
Distribution: Arch Linux
Posts: 3

Rep: Reputation: 0
@macking,
What kind of system are you running, does it have anything to do with the recent firmware updates, ver. 6.117 i think? not sure,. I had one of the original mac books, and I ended up replacing it because one day it stopped being able to locate my root directory when I logged in to the company site, so maybe its just a hardware flaw? good luck.
-D
 
Old 10-28-2010, 05:07 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by macking View Post
Not sure what to do next???
Did you check the mount commands I showed?
 
  


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
no network today. It worked fine yesterday... Mountain Linux - Hardware 4 07-01-2010 04:19 PM
Why freezes Ubuntu 8.10 every time after login? (1 month ubuntu worked fine) makrophage Linux - General 8 02-20-2009 12:21 AM
virtualbox, worked fine before a restart Jayla Linux - Software 2 05-28-2008 04:10 PM
Sound worked fine during installation, but not after... Shekers Linux - Hardware 3 05-31-2004 07:16 PM
RedHat 9 gives errors when RedHat 8 worked fine - same hardware obarney Linux - Distributions 7 07-29-2003 05:07 PM

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

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