- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- changed path won't boot
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
09-28-2004 07:05 AM
09-28-2004 07:05 AM
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 07:27 AM
09-28-2004 07:27 AM
SolutionGo to the console.
Log in as root.
Type this command carefully:
PATH=/usr/bin
vi /etc/profile
fix the path, make it match a valid box.
save
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
09-28-2004 07:47 AM
09-28-2004 07:47 AM
Re: changed path won't boot
The PATH is set in the /etc/profile and in the users .profile it can be adjusted ore overwritten. What PATH variable did you change?
If it is the .profile only one user is affected. If this is the root user a graphical login can be a way out as well.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 07:57 AM
09-28-2004 07:57 AM
Re: changed path won't boot
remsh server date
If this goes through..
you can do
remsh server echo "PATH=
Then try and login
Hope this helps
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 08:21 AM
09-28-2004 08:21 AM
Re: changed path won't boot
Thanks all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 08:28 AM
09-28-2004 08:28 AM
Re: changed path won't boot
Once you are in single user mode, you can always set path manually.
PATH=/usr/bin:/usr/sbin:/usr/contrib/bin:/usr/lbin
etc and then try.
Make sure your /etc/PATH file is good. If it is not there, then create a default one with all the possible PATHs that you can think of. Once the system is booted, restore it from backups.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 08:33 AM
09-28-2004 08:33 AM
Re: changed path won't boot
if it is working.
Otherwise you have to boot in single user mode. And modify your files. /etc/profile & /etc/PATH
Hope you are able to do remsh..r u?
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 09:52 PM
09-28-2004 09:52 PM
Re: changed path won't boot
ll /etc/PATH
else vi /etc/PATH
/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin
chown to bin:bin
permission 444
-r--r--r-- 1 bin bin 360 Aug 18 19:18 /etc/PATH
On /etc/profile
set
PATH=/usr/bin:/usr/ccs/bin:/usr/contrib/bin
Copy another hp-ux system default /etc/profile to this system. Just copy and vi /etc/profile and paste here.
-r--r--r-- 1 bin bin 2444 Sep 26 15:57 /etc/profile
Do this. if u have issue give that again.
Boot single user mode as,
stop at booting prompt,
boot hpux -is
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 01:27 AM
09-29-2004 01:27 AM
Re: changed path won't boot
Boot into single user mode ( hpux -is from ISL> prompt ).
/sbin/mount /usr
/sbin/mount /var
cd /etc
/usr/bin/cp profile profile.mightbebad
/usr/bin/cp /usr/newconfig/etc/profile /etc/profile
Then reboot
best regards,
Kent M. Ostby