- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- login problem
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
04-20-2004 06:21 PM
04-20-2004 06:21 PM
login problem
and I donot have any other a/c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 06:23 PM
04-20-2004 06:23 PM
Re: login problem
Did you change by accident the shell for the root user to /sbin/ksh instead of /sbin/sh ?
If yes you need to reboot the system into single user mode and correct this.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 06:36 PM
04-20-2004 06:36 PM
Re: login problem
You need to cold restart the system and boot through single user mode by using hpux -is on ISL prompt and copy back your old passwd file or add the entry /sbin/sh at the Shell entry in /etc/passwd file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 06:37 PM
04-20-2004 06:37 PM
Re: login problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 06:42 PM
04-20-2004 06:42 PM
Re: login problem
Undo the changes and put it back as it was
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:23 PM
04-20-2004 07:23 PM
Re: login problem
on my hpux I use /usr/bin/ksh as root shell, and it works.
Sure I agree with you that /sbin/sh can be a better choiche but I neve had problem, even on hd failure, using such a shell.
Peace, R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:43 PM
04-20-2004 07:43 PM
Re: login problem
You won't be able to boot in LVM maintenance mode. If you want to use a /usr/... program as a shell for root, put something like this in his .profile:
[ -x /usr/bin/ksh ] && exec /usr/bin/ksh
That way, if /usr is not (yet) mounted, you have at least a working root account.
As for the problem itself: it might be a change to the shell of the user that is caused by putting a colon (:) extra on or removing a colon from a line... Make sure the first line looks right, having the right number of colons. And of course a correct executable shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 10:28 PM
04-20-2004 10:28 PM
Re: login problem
It is a bad practice to edit /etc/passwd if u r a novice. Just change the shell to /sbin/sh by editing /etc/passwd.
Roberto any shell will work but the thing is it should exist.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 08:10 AM
04-21-2004 08:10 AM
Re: login problem
Try rebooting system in single user mode and make shell chnages to passwd file for root user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 09:50 AM
04-21-2004 09:50 AM
Re: login problem
It would be possible to create a statically linked version of ksh or bash and make an entry in /etc/shells and install them in /sbin.
Most people do this out of the mistaken belief the /sbin/sh is a Bourne shell; it is instead a fully functional POSIX shell which is for all intents and purposes a Korn shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 11:35 AM
04-21-2004 11:35 AM
Re: login problem
This will enable the correct shell as built by HP
PS.
Create another account with root privs
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 12:48 PM
04-21-2004 12:48 PM