Operating System - HP-UX
1834808 Members
2639 Online
110070 Solutions
New Discussion

Re: Server doing some weird things, HELP!!

 
SOLVED
Go to solution
Phillip Popp
Regular Advisor

Server doing some weird things, HELP!!

Hi,
I am running hp 10.2, Yester day my srever was doing some weird things. couldn't run sam, not even an ls would work. Rebooted, all worked fine till today. Now I can only seem to log into system with root. All other users report no shell when I try to do a su.

I think something is starting to physically go wrong with my hard drives. I thought about running fsck. Can this be run on a mounted file system. Will this repair or rewrite any bad files? I have 10 people at my cube asking what is wrong, please give me some guidence. i do not see any thing in the syslog that points to a problem, although admittitly, I don't really know where to look in the file or other log files for guidence. Please help!!

Thanks,

Phil

53 REPLIES 53
Court Campbell
Honored Contributor

Re: Server doing some weird things, HELP!!

try running bdf and see if a file system is full. If you can try and post the output from syslog and dmesg.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
MarkSyder
Honored Contributor

Re: Server doing some weird things, HELP!!

Check your disc(s) with ioscan -fnC disk

No shell? Do ll /etc/passwd and check the date and timestamp in case someone has been messing about with the contents. Make sure the shell allocated to users is a valid one.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
V. Nyga
Honored Contributor

Re: Server doing some weird things, HELP!!

Hi,

also check user log in .dt - error.log, startlog, sessionlogs.

'a mounted file system' - mounted from where?

Volkmar
*** Say 'Thanks' with Kudos ***
Phillip Popp
Regular Advisor

Re: Server doing some weird things, HELP!!

Here is my syslog after I rebooted today and the old one. After rebooting I still can not get usert to work, still no shell.
File system not full, only 80 some %. Passwd file seems ok.

Any idea what to do next?

Thanks,

Court Campbell
Honored Contributor

Re: Server doing some weird things, HELP!!

A follow up to Mike's suggestion would be to run pwck. Also check to see if the shell binary that the users are using is actually in there. Maybe someone removed/renamed/deleted it. The syslog you attached looks fine.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: Server doing some weird things, HELP!!

Sorry Mark I called you Mike. How could I forget that after reading "Mark Syder (like the drink but spelt different)" so many times.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Phillip Popp
Regular Advisor

Re: Server doing some weird things, HELP!!

Here is more .log files

Thanks,
V. Nyga
Honored Contributor

Re: Server doing some weird things, HELP!!

Hi,

this sems to be the log file of root (which works, right?).
Check .dt in the users home directories ...

V.
*** Say 'Thanks' with Kudos ***
Phillip Popp
Regular Advisor

Re: Server doing some weird things, HELP!!

I did an IO scan and it see all three disks, all three claimed, with paths.

Did not get any error messages?

Thanks,
Andrew Young_2
Honored Contributor

Re: Server doing some weird things, HELP!!

Hi Phil

Could you also add your /etc/rc.log file?

In addition just to check that your /home folders are all local and not automounted. You are not running NIS perhaps?

What result do you get when you run bdf /home.

Also bdf without any parameters (I suspect it might hang though)

Run ioscan -fnC disk and see if there are any NO_HW or other errors.

What shell are the users using?

My feelings are there are either problems with the users home directories or with the shell which is usually in /usr/bin or /usr/local/bin but check /etc/passwd for its location.

HTH

Andrew Y

HTH

Andrew Y
Si hoc legere scis, nimis eruditionis habes
Phillip Popp
Regular Advisor

Re: Server doing some weird things, HELP!!

Here is an error log from another user

How can I check the shell binaries the users are using? i am not that familiar with unix to check shell things

thanks,

Phillip Popp
Regular Advisor

Re: Server doing some weird things, HELP!!

Here is an log from another user


MarkSyder
Honored Contributor

Re: Server doing some weird things, HELP!!

"Sorry Mark I called you Mike. How could I forget that after reading "Mark Syder (like the drink but spelt different)" so many times."

That's quite all right, Mr Campfire ;-)

Phil - the final field in the /etc/passwd file tells you the user's shell. For root it should be /sbin/sh, for other users it may be different. Check the entry for a user who cannot log in and do ll /sbin/sh (or whatever shell it happens to be). The ll command should produce successful output.

Mark
The triumph of evil requires only that good men do nothing
Yogeeraj_1
Honored Contributor

Re: Server doing some weird things, HELP!!

hi Phil,

can you try to telnet on the server and create a new test user using SAM and see if the latter is able to login.

revert

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Phillip Popp
Regular Advisor

Re: Server doing some weird things, HELP!!

Here are some more files
Phillip Popp
Regular Advisor

Re: Server doing some weird things, HELP!!

My users are using the k shell
Court Campbell
Honored Contributor

Re: Server doing some weird things, HELP!!

what happens if you

# ll /usr/bin/ksh

See if the binary is there. try running the shell as root and see if runs or possibly makes a core dump.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Phillip Popp
Regular Advisor

Re: Server doing some weird things, HELP!!

It does not like the || in front of the /usr/bin/ksh. Syntax error " || not expected"

With out it, it just returns back to the prompt, no out put messages?
Andrew Young_2
Honored Contributor

Re: Server doing some weird things, HELP!!

Hi Phil

Use ls -l instead of ll

Regards

Andrew Y
Si hoc legere scis, nimis eruditionis habes
MarkSyder
Honored Contributor

Re: Server doing some weird things, HELP!!

It looks as if you've typed || (pipe) instead of ll (letter l).

Mark
The triumph of evil requires only that good men do nothing
Phillip Popp
Regular Advisor

Re: Server doing some weird things, HELP!!

Ok
I just added a user, every thing says in sam it was added fine. when i go to telnet login it says "no shell" Yes I did use pipe. attached is the output of /ls -l /usr/bin/ksh

thanks for sticking with me guys.

Phil
MarkSyder
Honored Contributor

Re: Server doing some weird things, HELP!!

The output is identical to /usr/bin/ksh on one of my systems (apart from the date).

Is /usr/bin/ksh listed in /etc/shells?

Mark
The triumph of evil requires only that good men do nothing
Court Campbell
Honored Contributor

Re: Server doing some weird things, HELP!!

can you post the output from

# awk -F: '{print $7'} /etc/passwd
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
MarkSyder
Honored Contributor

Re: Server doing some weird things, HELP!!

Please disregard my last post - I picked it up from Google and have just checked one of my systems - /etc/shells doesn't exist. Next time check first!

Mark
The triumph of evil requires only that good men do nothing