It is currently Tue, 30 Nov 2021 17:22:45 GMT



 
Author Message
 tcsh login, promptless
Hi,

I'm a newbie who's using Solaris 8. I've always used bash as my login
shell. But when I needed to provide a user with tcsh as the login shell,
after I added the user in the normal way with tcsh as the login shell I
had a problem. When logging in remotely (SSH) or locally or using `su -`,
the prompt won't come out straight away. It has to wait for about a minute
or two before giving me the prompt, unless I press CTRL-C.

I've been trying to find out what the problem is for hours, and I'm really
clueless until now. Would anyone enlighten me on this, please? I'd really
appreciate it.

Thanks in advance,

Lightyear



 Fri, 03 Mar 2006 23:56:28 GMT   
 tcsh login, promptless

su <user> is fine. Only the login shell takes a long time (unless I press
CTRL-C).

And it only happens if tcsh is the login shell. Users with bash as their
login shell are fine. `tcsh -l` also results in the same problem.

Any ideas?

Lightyear



 Sat, 04 Mar 2006 09:20:58 GMT   
 tcsh login, promptless

truss "tcsh -l" instead.  See where it gets stuck.  Post
the last 40 lines or so here if nothing obvious jumps out
at you.

hth
t



 Sat, 04 Mar 2006 09:33:19 GMT   
 tcsh login, promptless

Thanks a lot. I found out that the tcsh shell got stuck when executing
/etc/.login, particularly when running /usr/sbin/quota. This problem makes
sense to me, as I've fiddled around with the quota and I'm gonna fix this
as soon as possible.

I didn't know there's a global configuration file /etc/.login. And I just
knew about the 'truss' command, as I used to use 'strace' on Linux.
Learnt few things here.

Thanks again for the pointer.

Lightyear



 Sat, 04 Mar 2006 10:18:38 GMT   
 tcsh login, promptless

Actually, it's in the tcsh man page but buried quite deep
and a little bit confusing too:

FILES
    ...

     /etc/csh.login  Read by login shells  after  /etc/csh.cshrc.
                     ConvexOS,  Stellix and Intel use /etc/login,
                     NeXTs use /etc/login.std, Solaris  2.x  uses
                     /etc/.login  and  A/UX,  AMIX, Cray and IRIX
                     use /etc/cshrc.

In fact, the reason I asked you to truss "tcsh -l" was to
see if /etc/.login was the source of the problem :-)

hth
t



 Sat, 04 Mar 2006 10:34:31 GMT   
 
   [ 5 post ] 

Similar Threads

1. Waiting for tcsh login shell to terminate (via tcsh or perl)

2. Login with tcsh

3. why does tcsh lstat() sibling directories at login

4. CDE, /etc/.login & tcsh

5. tcsh "Not a login shell"

6. CDE, solaris 2.7, tcsh; hangs at login

7. tcsh bindkey wont work in login script

8. loading tcsh .login using XDM or KDM

9. xdm and tcsh login


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software