[LDAP-interop] openldap account login to HP-UX -- no shell prompt

Ran Li Ran.Li at sprint-canada.com
Wed Sep 28 18:29:41 EDT 2005


Hi Kevin,

thanks for the explanation, I just did a reboot on my nfs server and
everything came back to normal, I don't know what happened on nfs server
(a linux box), other shares and automounts worked fine also on some of
the hpux boxes it worked fine too. I need to take a look on nfs on
linux. 

appreciate your clue,

Best Regards,

Ran

-----Original Message-----
From: ldap-interop-bounces at fini.net
[mailto:ldap-interop-bounces at fini.net] On Behalf Of Collins, Kevin
(MindWorks)
Sent: Wednesday, September 28, 2005 6:19 PM
To: OpenLDAP interoperability list
Subject: RE: [LDAP-interop] openldap account login to HP-UX -- no shell
prompt


Yes, under HP-UX, the sh and ksh share the same code base (ksh88, to be
exact - sh just diffres for posix compliance) and hence the same bugs :)

Not sure why it only happens on some systems. In my past experience, it
was also the same and we have had our history files store in /tmp for
years because this problem recurrs frequently on HP-UX...

Kevin

-----Original Message-----
From: ldap-interop-bounces at fini.net
[mailto:ldap-interop-bounces at fini.net] On Behalf Of Ran Li
Sent: Wednesday, September 28, 2005 3:15 PM
To: OpenLDAP interoperability list
Subject: RE: [LDAP-interop] openldap account login to HP-UX -- no shell
prompt

By the way, even if I set user's login shell to sh (/bin/sh or /sbin/sh
or /usr/bin/sh) it won't work, unless put HISFILE= in place, seemed not
only ksh has this issue.

-----Original Message-----
From: Ran Li 
Sent: Wednesday, September 28, 2005 6:11 PM
To: 'OpenLDAP interoperability list'
Subject: RE: [LDAP-interop] openldap account login to HP-UX -- no shell
prompt


Hello Kevin and all,

thanks for your suggestion, I put it into the /etc/profile and it works.

However, I could not explain why some of the hp-ux do not need this
while some others do. I compared the /etc/profile they are all the same
the OS level and the patch level are also the same. 

Regards,

Ran

-----Original Message-----
From: ldap-interop-bounces at fini.net
[mailto:ldap-interop-bounces at fini.net] On Behalf Of Collins, Kevin
(MindWorks)
Sent: Wednesday, September 28, 2005 5:52 PM
To: OpenLDAP interoperability list
Subject: RE: [LDAP-interop] openldap account login to HP-UX -- no shell
prompt


Just a thought - is the user's home directory NFS (or automounter)
mounted? HP's ksh has historically had problems with history file being
in an NFS mounted directory.

You can try setting "HISTFILE=/tmp/.sh_history.$LOGNAME" (or some other
local directory) and see if it helps...

Kevin

-----Original Message-----
From: ldap-interop-bounces at fini.net
[mailto:ldap-interop-bounces at fini.net] On Behalf Of Ran Li
Sent: Wednesday, September 28, 2005 11:24 AM
To: OpenLDAP interoperability list
Subject: [LDAP-interop] openldap account login to HP-UX -- no shell
prompt

Hello list,

A question regarding the login/shell.

when I use a ldap account do the login, I could get the copyright info,
but after that, I could not get the shell prompt. 

For the same ldap account I can make login successful(have the prompt)
or unsuccessful(no prompt after copyright info), the only thing I need
to do is to change the ownership of .sh_history (that is what I got
after comparing the successful/unsuccessful accounts, nothing else)

Here is the successful one, .sh_history exists but user does not have
the permission to do anything.

$ ls -ld /home/test1
drwxr-xr-x 4 test1 group1 4096 Sep 27 17:59 /home/test1

$ ls -la /home/test1
total 24
drwxr-xr-x 2 test1 group1 4096 Sep 28 09:19 .
dr-xr-xr-x 2 root root 4 Sep 28 09:23 ..
-rw------- 1 root root 0 Sep 27 14:33 .sh_history

after removed .sh_history when I login as the same account, the home
directory can be mounted but the login process will hang(after copyright
info), user does not have it's own .profile just uses the /etc/profile,
and "set -x" will stop at 

.....

Hewlett-Packard Company
3000 Hanover Street
Palo Alto, CA 94304 U.S.A.

Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).
+ [ -r /etc/motd ]
+ [ -f /usr/bin/mail ]
+ mail -e
+ [ -f /usr/bin/news ]
+ news -n

but I don't think that is the problem, below is what I got when login as
another local user while the login process hanging, by the way, local
user does not have this kind of problem whichever the shell it uses.

$ ls -ld /home/test1
drwxr-xr-x 2 test1 group1 4096 Sep 28 09:24 /home/test1

$ ls -la /home/test1
total 40
drwxr-xr-x 2 test1 group1 4096 Sep 28 09:24 .
dr-xr-xr-x 2 root root 4 Sep 28 09:30 ..
-rw------- 1 test1 group1 2 Sep 28 09:24 .sh_history

it happened on 2 of hpux b.11.11 hosts but the other 2 are working fine
(ldap accounts can login with .sh_history enabled), I compared all
files/binaris that I can think about, sh, ksh, login, profile, but still
have no clue. 

BTW, if I set the user's default shell to csh, then user can login
without any problems.

Regards,

Ran


_______________________________________________
LDAP-interop mailing list
LDAP-interop at fini.net
http://lists.fini.net/mailman/listinfo/ldap-interop



_______________________________________________
LDAP-interop mailing list
LDAP-interop at fini.net
http://lists.fini.net/mailman/listinfo/ldap-interop

_______________________________________________
LDAP-interop mailing list
LDAP-interop at fini.net
http://lists.fini.net/mailman/listinfo/ldap-interop



_______________________________________________
LDAP-interop mailing list
LDAP-interop at fini.net
http://lists.fini.net/mailman/listinfo/ldap-interop

_______________________________________________
LDAP-interop mailing list
LDAP-interop at fini.net
http://lists.fini.net/mailman/listinfo/ldap-interop



More information about the LDAP-interop mailing list