Operating System - HP-UX
1752809 Members
5836 Online
108789 Solutions
New Discussion юеВ

Re: not able to login to server other than root

 
SOLVED
Go to solution
achyuth
Advisor

not able to login to server other than root

hi,

Iam facing a problem where only the root is able to login to the rserver
normal users are not able to login
and also
that when i do su to normal user its su: noshell bot iam able to su to root and othe id's with root access.

pls help
22 REPLIES 22
A. Clay Stephenson
Acclaimed Contributor

Re: not able to login to server other than root

My best guess is that /usr/bin/sh is corrupt or you have done something dumb like made bash the shell. Root uses a statically linked version of the POSIX sh, /sbin/sh so it can run standalone but the other users execute a dynamically linked version. I would first do an "ls -l /usr/bin/sh" and then a "file /usr/bin/sh". If those look ok, as root execute /usr/bin/sh and see what happens. You could have permission problems on /usr/bin/sh or one of the libraries it links to. You could also have a bogus entry in /etc/shells.
If it ain't broke, I can fix that.
achyuth
Advisor

Re: not able to login to server other than root

hi,
thanks for the immediate reply

my etc/shells
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
/bin/sh
/bin/csh

ls -l /usr/bin/sh
-r-xr-xr-x 2 bin bin 208896 Feb 12 2003 /usr/bin/sh

file /usr/bin/sh
/usr/bin/sh: PA-RISC1.1 shared executable dynamically linked

when i do /usr/bin/sh
it points to /tmp
should that be "/"

if "/" how should i change that.
pls help

OldSchool
Honored Contributor

Re: not able to login to server other than root

"su to normal user its su: noshell "

what shell is the "normal user" noted above assigned in the passwd file?
achyuth
Advisor

Re: not able to login to server other than root

hi when i su from root to


ri004361:99/o7MN.0Pm86:223:22::/home/ri004361:/bin/csh
achyuth
Advisor

Re: not able to login to server other than root

histephenson,

soory for the wrong report in my previous reply

when i do /usr/bin/sh
pwd

it point to "/" not to /tmp
OldSchool
Honored Contributor

Re: not able to login to server other than root

ok, so the user that has "no shell" is attempting to run the c-shell...so

what do "ls -l /bin/csh" and "file /bin/csh" report?

achyuth
Advisor

Re: not able to login to server other than root

hi,

ls -l /bin/csh
-r-xr-xr-x 1 bin bin 155648 Nov 2 16:00 /bin/csh

file/bin/csh
/bin/csh: PA-RISC1.1 shared executable dynamically linked
Robert-Jan Goossens
Honored Contributor

Re: not able to login to server other than root

Hi,

could you post
# ll /etc/shells

Regards,
Robert-Jan
achyuth
Advisor

Re: not able to login to server other than root

ll /etc/shells
-rw-r--r-- 1 root sys 106 Aug 14 2004 /etc/shells