- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- setting 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
03-06-2005 07:44 AM
03-06-2005 07:44 AM
setting root
# cd $HOME
ksh: cd: bad directory.
can someone help or provide documentation for settting this up.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 07:59 AM
03-06-2005 07:59 AM
Re: setting root
What did you set as roots home in the /etc/passwd file ? ("/" or /root)
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 08:13 AM
03-06-2005 08:13 AM
Re: setting root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 08:43 AM
03-06-2005 08:43 AM
Re: setting root
# cd
It should go to the home dir of root
Robert-Jan ( who by the likes a /root directory for home, think of a mistype between a copy from two servers you wont get the mes al over you system.
Regards and good night.
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 09:28 AM
03-06-2005 09:28 AM
Re: setting root
echo $HOME
report? If there is nothing reported or you get an error message that "HOME: Parameter not set." then there is something very strange about your login method. Are you using Xwindows? Are you using ssh? Have you changed /etc/profile? What does:
echo $SHELL
report? If it is not /sbin/sh, you must immediately change root's shell back to /sbin/sh as your system will malfunction in single user mode with a different shell.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 10:27 AM
03-06-2005 10:27 AM
Re: setting root
ehco $SHELL displays a valid shell;
echo $SHELL displays nothing ie
# echo $SHELL
#
we have created a test lab from a version of hpux 11.00 seot 04. Both servers have this problem so do you think it is something missing from our configuration procedures?
how can I fix this.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 11:30 AM
03-06-2005 11:30 AM
Re: setting root
set
ps -f
This will list the current environment.
You need to provide more information about your computer. Is it a workstation with a graphics display? If not, are you logging in using the system console, or using telnet, or what?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 11:42 AM
03-06-2005 11:42 AM
Re: setting root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 01:03 PM
03-06-2005 01:03 PM
Re: setting root
What you are doing is starting CDE on the HP-UX computer and having it take over your PC's screen. Then you click on a terminal window and you'll notice that it starts instantly with no meaningful environment (that is, /etc/profile and .profile are not run) To fix the problem using Xwindows (Hummingbird), run this command one time for each user that logs in to your N4000:
echo "*loginShell: true" >> .Xdefaults
Do this as soon as each user logs in so the file .Xdefaults will be in the home directory. Then logout and restart Hummingbird and now when you login, you'll see the normal Unix startup messages along with a full environment (use the set command to see the difference).
Now if your system administrator knows a bit about scripting, a script can be written to create this file in all user home directories.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 01:08 PM
03-06-2005 01:08 PM
Re: setting root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2005 01:36 PM
03-06-2005 01:36 PM
Re: setting root
Bill Hassell, sysadmin