Operating System - Tru64 Unix
1748100 Members
5531 Online
108758 Solutions
New Discussion юеВ

Re: help: no shell

 
SOLVED
Go to solution
singvey
Frequent Advisor

help: no shell

only the root can login host.
other user can not whith : no shell.


when i su - zxw
su : no shell

su - bin
su:no shell



my /etc/passwd:
root:KctJ5Q8JQJywM:0:3::/:/sbin/sh
bin:*:2:2::/usr/bin:/sbin/sh
daemon:*:1:5::/:/sbin/sh
sys:*:3:3::/:
adm:*:4:4::/var/adm:/sbin/sh
uucp:*:5:3::/var/spool/uucppublic:/usr/lbin/uucp/uucico
lp:*:9:7::/var/spool/lp:/sbin/sh
nuucp:*:11:11::/var/spool/uucppublic:/usr/lbin/uucp/uucico
hpdb:*:27:1:ALLBASE:/:/sbin/sh
nobody:*:-2:-2::/:
www:*:30:1::/:
zxw:0k0t/OGyUkFvU:103:20:user:/home/zj:/sbin/sh
10 REPLIES 10
Venkatesh BL
Honored Contributor

Re: help: no shell

Does /sbin/sh exist on the system?. Is it executable?
singvey
Frequent Advisor

Re: help: no shell

# cd /sbin
# ls -al sh
-r-xr-xr-x 1 bin bin 1213444 Sep 4 2003 sh
singvey
Frequent Advisor

Re: help: no shell

pwck is ok
Venkatesh BL
Honored Contributor

Re: help: no shell

What is the OS/patch version?
Did you check if it works with other shells (like ksh)?
Is the system running BASE security?
Kasper Hedensted
Trusted Contributor
Solution

Re: help: no shell

Venkatesh BL
Honored Contributor

Re: help: no shell

I think I know what the problem is.

Does these lines (in passwd file) have extra space(s) at the end of the line. If so, remove them. You should be fine.
Michael Schulte zur Sur
Honored Contributor

Re: help: no shell

Hi,

with
grep zxw /etc/passwd | od -x
you can check for illegal characters.

greetings,

Michael
Ivan Ferreira
Honored Contributor

Re: help: no shell

Check the filesystem permissions on / and /sbin.

Always use usermod to change user parameters to avoid non prontable characters on the file that may cause the problem, but if pwck does not reports problems, this should be not your problem.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
singvey
Frequent Advisor

Re: help: no shell

thanks a lot .

When use chmod 755 /

All problem has been resolved.


thanks