- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: temp hostname change
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
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
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
08-01-2011 09:05 AM
08-01-2011 09:05 AM
We have an app team that insist that they need to change a hostname to install their app.
Its just as simple as running the hostname command no neeed to edit /etc/password , /etc/rc.config.d/netconf ..
Needless to say their change occur in the middle of the night ... and then once they are done we are to change the hostname back.
We tried to change the varible HOSTNAME but when the hostname command is ran it still shows the old hostname.
My question is .. is there a varible to change the hostname?
Or would we have to give them sudo access to change the hostname back and fourth.
Solved! Go to Solution.
- Tags:
- hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2011 09:09 AM
08-01-2011 09:09 AM
Re: temp hostname change
why not just modify dns and/or /etc/hosts to add an additional name?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2011 10:22 AM
08-01-2011 10:22 AM
Re: temp hostname change
Try
# hostname
# hostname mynewhostname
# hostname
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2011 10:22 PM
08-01-2011 10:22 PM
Re: temp hostname change
Giving sudo access to change the hostname of any unix machine is a security risk.
Some of your services could depend on that name. I wonder if the app team must install a new app every night becouse if they only have to do that let's say once per month you should assist them to do that. Better talk with them and try to understand why they have this requirement from you. Maybe there is one missunderstanding of the problem.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2011 05:32 AM
08-02-2011 05:32 AM
Re: temp hostname change
Hey;
>.# hostname mynewhostname
You should also use "uname -S ${newhostname}" although, like the others, I find this quite squirrelly. There's something not right going on there if they need to change the hostname in order to install an app...
HTH;
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2011 12:33 AM - edited 08-04-2011 12:34 AM
08-04-2011 12:33 AM - edited 08-04-2011 12:34 AM
Re: temp hostname change
you can use "set_parms hostname" command to change hostname .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2011 01:39 AM
08-04-2011 01:39 AM
Re: temp hostname change
> you can use "set_parms hostname" command to change hostname .
It will change hostname on permanent basis...
Was this post useful? - You may click the KUDOS! star to say thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2011 02:08 AM