Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

/bin/ksh "not found" for no-root user

408 views
Skip to first unread message

Olivier Gobert

unread,
Aug 21, 1996, 3:00:00 AM8/21/96
to

Hello

Have a problem that drives me crazy.

On a RS6K 37T with AIX 4.1.4, only root can log on the system.
With root account, everything's OK but user with UID != 0 can't log in.

Whith rsh/rlogin the message is "/bin/ksh : permission denied"
With telnet "3004-009 Failed running login shell."
Of course permissions are OK

Something strange : I have the "Failed running login shell." whatever the
l.s. is ( /bin/sh, /usr/bin/ksh, /usr/local/bin/tcsh ... )

When I log in as root and "su" to an other user, the message is "Cannot set
process environment."
I have run the "su" in trace mode. Here's the last lines of the trace :
106 su 6.275504 dispatch: cmd=su pid=18296 tid=13697 priority=63
old_tid=14003 old_priority=60 CPUID=0 [513 usec]
107 su 6.275504* lookuppn: /bin/ksh
107 su 6.276177 lookuppn: file not found

Off course /bin/ksh is at the right place ( and /bin is a symbolic link to
/usr/bin and /usr/bin/ksh is a physical link to /usr/bin/ksh everything
sounds OK )

I even reboot in single mode and run "fsck" on / an /usr. fsck also say "OK"
but the problem is still there...

Any help will be greatly appreciated

Regards
Olivier Gobert

Please answer by mail at ogo...@obelix.saclay.cea.fr
I'll summarize.


Steve Woolston

unread,
Aug 22, 1996, 3:00:00 AM8/22/96
to

Olivier Gobert wrote:
> On a RS6K 37T with AIX 4.1.4, only root can log on the system.
> With root account, everything's OK but user with UID != 0 can't log in.
>
> ....

> Something strange : I have the "Failed running login shell." whatever the
> l.s. is ( /bin/sh, /usr/bin/ksh, /usr/local/bin/tcsh ... )
>
> ....

> I have run the "su" in trace mode. Here's the last lines of the trace :
> 106 su 6.275504 dispatch: cmd=su pid=18296 tid=13697 priority=63
> old_tid=14003 old_priority=60 CPUID=0 [513 usec]
> 107 su 6.275504* lookuppn: /bin/ksh
> 107 su 6.276177 lookuppn: file not found
>
> Off course /bin/ksh is at the right place ( and /bin is a symbolic link to
> /usr/bin and /usr/bin/ksh is a physical link to /usr/bin/ksh everything
> sounds OK )

Do non-root users have execute permission on either /bin or /usr/bin?
Check this, it can cause the file not found.

Olivier Gobert

unread,
Aug 23, 1996, 3:00:00 AM8/23/96
to

In article <321C56...@norwich-union.co.uk>, woo...@norwich-union.co.uk
says...

>
>Olivier Gobert wrote:
>> On a RS6K 37T with AIX 4.1.4, only root can log on the system.
>> With root account, everything's OK but user with UID != 0 can't log in.
>>
>> ....
>
>
>Do non-root users have execute permission on either /bin or /usr/bin?
>Check this, it can cause the file not found.


Yea, first thing I've checked :

root@bofix: >ls -l /bin/ksh
-r-xr-xr-x 4 bin bin 230148 Sep 20 1995 /bin/ksh

root@bofix: >ls -ld /bin
lrwxrwxrwx 1 root system 8 Aug 21 19:13 /bin -> /usr/bin

root@bofix: >ls -ld /usr/bin
drwxr-xr-x 4 bin bin 10752 Aug 21 19:17 /usr/bin

root@bofix: >ls -ld /usr
drwxr-xr-x 22 root bin 512 Aug 20 17:46 /usr

root@bofix: >su - ogobert
Cannot set process environment.

Any clue ?


Matt Tolbert

unread,
Aug 23, 1996, 3:00:00 AM8/23/96
to

Olivier Gobert wrote:

> On a RS6K 37T with AIX 4.1.4, only root can log on the system.
> With root account, everything's OK but user with UID != 0 can't log in.
>

You might also want to check the chmod settings of your /etc/passwd
file; should be -r--r--r-- . I've troubleshooted similar problems in
the past, which have turned out to be sysadms changing passwd privledges
to -r--------!

Olivier Gobert

unread,
Aug 26, 1996, 3:00:00 AM8/26/96
to

Find a solution.

In the AIX install CD-ROM, I've found a package called :
"bos.rte.shell.usr.4.1.4.0"
It contains all the shells ( sh, csh, ksh ) + some commands ( eg : awk )
Re-install it with -f ( force ) option.
Now everything is OK
It's a bit strange 'cause it also solves the problem with tcsh which is not
in the package ?!?

Thanks for your help
Olivier

In article <4vfndd$d...@news.cea.fr>, olivier...@cea.fr says...


>
>Hello
>
>Have a problem that drives me crazy.
>

>On a RS6K 37T with AIX 4.1.4, only root can log on the system.
>With root account, everything's OK but user with UID != 0 can't log in.
>

>Whith rsh/rlogin the message is "/bin/ksh : permission denied"
>With telnet "3004-009 Failed running login shell."
>Of course permissions are OK

...


Christoph Rimek

unread,
Aug 27, 1996, 3:00:00 AM8/27/96
to

Hello

In article <4vfndd$d...@news.cea.fr>, olivier.gobert (olivier...@cea.fr) wrote:

> Have a problem that drives me crazy.
>
> On a RS6K 37T with AIX 4.1.4, only root can log on the system.
> With root account, everything's OK but user with UID != 0 can't log
> in.
>
> Whith rsh/rlogin the message is "/bin/ksh : permission denied"
> With telnet "3004-009 Failed running login shell."
> Of course permissions are OK
> ...

Look at the permissions of your root filesystem, there has to be the
execute permission for "others". I assume your root directory looks
like "drwxr--r--" or "drwxr-w---", it has to read "drwxr-xr-x".

-cr
--
Christoph Rimek, Kiel, Germany (+49 431 57601) chr...@toppoint.de

0 new messages