Solaris 2.3 "No directory" "No shell"

Solaris 2.3 "No directory" "No shell"

Post by Lewis E. Randers » Fri, 14 Jul 1995 04:00:00



I'm running SunOS 5.3 on a SPARC 10. We are now getting
"No shell" or "No directory!" errors whenever we log in.
(rlogin, su, login, ...)

We can cd to the directory so we know there's no problem.
We can execute the shell and change to it.

A "truss su - randerso" stops with:
==========================================================
# tail /usr/tmp/truss.lis
poll(0x0003C0B0, 1, 120000)                     = 1
getmsg(4, 0xEFFFE994, 0xEFFFE988, 0xEFFFEA04)   = 0
close(4)                                        = 0
setgroups(4, 0x00031438)                        = 0
setuid(4540)                                    = 0
chdir("/u/randerso")                            Err#13 EACCES
execve("/bin/bash", 0xEFFFFDE0, 0x00023464)     Err#13 EACCES
write(2, " s u :   N o   s h e l l".., 13)      = 13
lseek(0, 0, 1)                                  = 30284
_exit(3)
#
============================================================

That EACCES error appears to be false.
============================================================
# ls -ld /u/randerso /bin/bash
-rwxr-xr-x   1 root     other    1661324 May 15 09:25 /bin/bash
drwxr-xr-x 113 randerso users       5632 Jul 13 17:01 /u/randerso
============================================================

Any help and/or insight will be appreciated.

Lew Randerson

--

--
Lewis E. Randerson
44 Scott Lane                         phone:609/921-2553 FAX:609/921-3487

 
 
 

Solaris 2.3 "No directory" "No shell"

Post by Casper H.S. Dik - Network Security Engine » Sat, 15 Jul 1995 04:00:00



Quote:>I'm running SunOS 5.3 on a SPARC 10. We are now getting
>"No shell" or "No directory!" errors whenever we log in.
>(rlogin, su, login, ...)
>We can cd to the directory so we know there's no problem.
>We can execute the shell and change to it.
>chdir("/u/randerso")                            Err#13 EACCES
>execve("/bin/bash", 0xEFFFFDE0, 0x00023464)     Err#13 EACCES
>That EACCES error appears to be false.

Why?  You haven't listed all the directory modes in the PATH.

What are the modes of /, /bin, /usr, /usr/bin, /u?

(I'd guess / misses some X bits)

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.

 
 
 

Solaris 2.3 "No directory" "No shell"

Post by Rahul Ro » Thu, 20 Jul 1995 04:00:00


Generally this happens when someone twiddles with the /etc/passwd file - I
suggest that you become root, vi /etc/passwd and try some other shells, just to
see whether the problem lies elsewhere or not.....if it works with csh or sh
then you could isolate your problem.....

Good luck on that ..

Rahul Roy
Systems & Networks Engineer
Mercantile Software Systems, Inc.
(908)-981-1290 (Voice)
(908)-981-1646 (Fax)

--------------------------------------------------------------------
"Relativity eliminated the Newtonian illusion of absolute space and
time; quantum theory eliminated the the Newtonian dream of a
controllable measurement process; and chaos eliminated the Laplacian
fantasy of deterministic predictability"
--------------------------------------------------------------------