- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NIS account is unable to login using ksh shell...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 01:12 AM
11-28-2007 01:12 AM
My system is a NIS client.
NIS account with /bin/csh shell are able to login, but NIS account with /bin/ksh shell are not able to login. No error are seen in syslog.log file.
Local user with /bin/ksh shell are able to login.
/etc/shells file exists with proper shell entries.
Please help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 01:32 AM
11-28-2007 01:32 AM
Re: NIS account is unable to login using ksh shell.
Somewhere there must be a problem.
On the NIS master, check the shell entry and make sure it points to a valid shell on the system being logged into.
Check permissions (local) on the system of the shell itself. If its invisible to the user then it can cause this problem.
If the screen is showing an error message, please post it to the thread.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 06:07 AM
11-28-2007 06:07 AM
Re: NIS account is unable to login using ksh shell.
being your using nis, maybe your using nfs for the users home directories.
so check that the stat and lock daemons are running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 08:14 AM
11-28-2007 08:14 AM
Re: NIS account is unable to login using ksh shell.
if the file does not exist create one
example:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
#
/bin/sh
/bin/rsh
/bin/ksh
/bin/rksh
/bin/csh
/bin/keysh
/usr/bin/false
#
/usr/local/bin/zsh
/usr/local/bin/rzsh
/usr/local/bin/ftponly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 08:17 AM
11-28-2007 08:17 AM
Re: NIS account is unable to login using ksh shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 09:34 AM
11-28-2007 09:34 AM
Re: NIS account is unable to login using ksh shell.
Does the login fail with an error message? Does the login attempt hang? Is the user kicked off immediately?
Are the home directories NFS mounted? If so, does the same problem occur for users with home directories in local filesystems?
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 05:09 PM
11-28-2007 05:09 PM
Re: NIS account is unable to login using ksh shell.
Thanks for the reply..
1. Following info available in /etc/shells file.
/bin/csh
/bin/ksh
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
#
/bin/sh
/bin/rsh
/bin/ksh
/bin/rksh
/bin/csh
/bin/keysh
/usr/bin/false
#
/usr/local/bin/zsh
/usr/local/bin/rzsh
/usr/local/bin/ftponly
2. User login hangs, after running /etc/profile and ~/.profile files.
3. User home directory is mounted, but does not get shell prompt.
4. Local user with /bin/ksh shell is able to login successfully.
5. No errors found in /var/adm/syslog/syslog.log.
Please suggest.
Krishna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 06:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 07:04 PM
11-28-2007 07:04 PM
Re: NIS account is unable to login using ksh shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 03:19 AM
11-29-2007 03:19 AM
Re: NIS account is unable to login using ksh shell.
99% of these NFS file lock issues are configuration related (i.e. the server can't resolve the client's IP address properly, resolves the wrong address, etc.).
Robert-Jan Goossens has already given you the "workaround" for this problem, which is to redirect the HISTFILE environment variable in these users' .profiles to point to a local filesystem. This doesn't resolve the underlying issue of the client not being able to lock files on the NFS filesystem, but it will allow these users to log in without hanging.
If you're interested in actually fixing the problem, rather than just working around it, there is data you can collect to determine the underlying cause.
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 04:50 AM
11-29-2007 04:50 AM
Re: NIS account is unable to login using ksh shell.
Yes Dave, i would like to get into root cause of this problem. Please let me know what type of data i have to collect.
Thanks
Krishna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 07:03 AM
11-29-2007 07:03 AM
Re: NIS account is unable to login using ksh shell.
The best data to collect is a debug rpc.lockd and rpc.statd log file from both NFS client and server as well as a network trace taken on the client and the server.
Are both systems running HP-UX? If so, what version?
If both systems are running HP-UX, the way to turn on debug rpc.lockd/statd logging is to send the running daemons a SIGUSR2. This trick should work on any HP-UX system running 11.0, 11.11 or 11.23 (11.31 the procedure is different)
# kill -17 $(ps -e | grep -E 'rpc.statd|rpc.lockd' | awk '{print $1}')
This will toggle debug logging to the /var/adm/rpc.lockd.log and /var/adm/rpc.statd.log files. Reproduce the lock hang while logging is running and then use the same kill command to toggle the debug logging off.
We can start with the debug logfiles first and if they don't tell us what we need to know we can collect the network traces.
If you're running 11.31 (i.e. 11i v3) let me know and I can tell you how to collect the debug logging for that system.
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
