- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Regarding shell for root
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
10-27-2004 07:25 PM
10-27-2004 07:25 PM
I need a simple sollution from GURUs.
I all of you know the shell for root should be from /sbin only not from /usr/bin.
This is needed as system may give problem is you are booting in single user mode as /usr is by default is mounted.Please correct if wrong. Now my question is
1) Which are file systems by defalut mounted in case of single user mode.. I can not test on my prduction server.. I heard some times the root is mounted as /dev/root instead on\f /dev/vg00/lvol1 in case of single user mode. if yes why ..Please help
2)If I want the shell of root to be from /usr/bin when the system is booting other than single user mode, what change i have to make in the /etc/profile or .profile or in case of Cshell also.
Hope there is no confusion and I will get the answer.
Thanks
Suraj
Solved! Go to Solution.
- Tags:
- shells
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 07:38 PM
10-27-2004 07:38 PM
Re: Regarding shell for root
If you are booting in single user mode /usr is not mounted, the only filesytem mounted is / therefore you need the root shell to be /sbin/sh.
If you need to boot in lvm maintenance mode / is mounted as /dev/root. To avoid problems you need to shutdown from maintenance mode with shutdown -r instead of going to multi user mode directly.
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 07:39 PM
10-27-2004 07:39 PM
Re: Regarding shell for root
To resolve this you can do a
#mv /etc/mnttab /etc/mnttab.org
#mount -a
Regarding the shell for root user,the root users shell should be /sbin/sh.do not change that.
Incase you want the root user to use a different shell during login add
/usr/bin/ksh to the last line of the $HOME/.profile file of the root user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 07:39 PM
10-27-2004 07:39 PM
Re: Regarding shell for root
in single user mode (hpux -is) you have mounted:
/ on /dev/vg00/lvol3
/stand on /dev/vg00/lvol1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 07:42 PM
10-27-2004 07:42 PM
Re: Regarding shell for root
1. If there are no issues (like fsck successful etc.,) with the filesystems, then / and /stand will be mounted in singleuser mode. If there is a problem where / is not mountable, then it's pseudo device /dev/root is mounted as a precautionary measure.
2. Use .profile rather than /etc/profile as it affects all the users that are using ksh. .cshrc for C-shell doesn't play a role here as root's shell will be /sbin/sh by default.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 09:20 PM
10-27-2004 09:20 PM
Re: Regarding shell for root
Thanks a lot
TGM Thanks for the nice trick..
However, if i want to to repat the previous commands using Esc K combination its not happening.
Can u please tell why.. Give some briefs if possible
Rgds
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 09:29 PM
10-27-2004 09:29 PM
Solutionthe main difference is /usr/bin/ksh is dynamicaly linked...
I have seen other sysadmins struggle with they system when had to do some easy maintenace task because they put in /etc/passwd /usr/bin/ksh...
An example? Without Online-JFS having to extend /var...
So for beeing on the safe side, typing after you log on the shell you want to use isnt that bad....
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 09:40 PM
10-27-2004 09:40 PM
Re: Regarding shell for root
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 09:54 PM
10-27-2004 09:54 PM
Re: Regarding shell for root
Thanks
I am closing this thread..
Once again thnaks all who helped me..
Thanks
Suraj