- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing Root's 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
05-18-2004 03:14 PM
05-18-2004 03:14 PM
My server model:
ia64 hp server rx2600
OS version:
B.11.23
I give root a REAL ksh shell at bootup, so I change the "/sbin/sh" line for root in the /etc/passwd file to "/sbin/ksh" then do this:
cp -p /usr/bin/ksh /sbin/ksh
Also I create the file /etc/shells with the access permissions 664, the content includes:
/bin/ksh
/sbin/ksh
/sbin/sh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/sh
Finally, it failed to execute the following command:
/sbin/ksh: tis4: not found
which tis4 represents:
alias tis4="rlogin tiscmcs4 -l root" in .kshrc file.
Thanks you for your helps
Alex
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:22 PM
05-18-2004 03:22 PM
Re: Changing Root's Shell
Your system can be rendered fairly useless without it. There are a zillion posts on this subject.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:25 PM
05-18-2004 03:25 PM
Solutionhttp://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x2efaa14d9abcd4118fef0090279cd0f9%2C00.html&admit=716493758+1084937057207+28353475
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:35 PM
05-18-2004 03:35 PM
Re: Changing Root's Shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:38 PM
05-18-2004 03:38 PM
Re: Changing Root's Shell
If you persist, I would suggest updating the reasume.
Root needs its default shell. If you made the change, put it back before you boot the machine.
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
05-18-2004 03:42 PM
05-18-2004 03:42 PM
Re: Changing Root's Shell
As has been said above the root account ABSOLUTELY MUST have /sbin/sh as its shell.
If you insist on using something do:
# exec /usr/bin/ksh
AFTER you log in to the system as root. Don't put it in your .profile or anything just execute that command at the command line. Now you have ksh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:48 PM
05-18-2004 03:48 PM
Re: Changing Root's Shell
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:58 PM
05-18-2004 03:58 PM
Re: Changing Root's Shell
look at the "uproar" u have cause, all the warnings are out. please do what u have to do to avoid a major problem with your server.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:29 PM
05-18-2004 07:29 PM
Re: Changing Root's Shell
root@tisdev:/ # which ksh
/usr/bin/ksh
root@tisdev:/ # which tar
/usr/bin/tar
root@GZDT-2:/.root # which ksh
/bin/ksh
root@GZDT-2:/.root # which tar
/bin/tar
How can I solve it ?
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:35 PM
05-18-2004 07:35 PM
Re: Changing Root's Shell
I want to change /bin/ksh path to the correct one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 08:41 PM
05-18-2004 08:41 PM
Re: Changing Root's Shell
Check your PATH env variables on both servers.
# echo $PATH
should be /usr/bin not /bin
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 08:56 PM
05-18-2004 08:56 PM
Re: Changing Root's Shell
The problem is solved out!!!
Regards
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2004 01:37 AM
05-19-2004 01:37 AM
Re: Changing Root's Shell
/bin is linked to /usr/bin so that is why you will see similar things.
If you want ksh then the easiest way to do this correctly is to set up a second root user .. call it "root2" or whatever and give that user the ksh. Make sure the user has uid 0 just like root.
Then when you log in as root and want ksh, do a su - root2.
Best regards,
Kent M. Ostby