cancel
Showing results for 
Search instead for 
Did you mean: 

host name issue in 11.11

SOLVED
Go to solution
Sreer
Valued Contributor

host name issue in 11.11

Hi Gurus,

I have an HPUX 11.11 server.

As usual Iam not able to set a hostname of more than 8 characters in result of uname -a

for example its showing hostname output as perfect but while giving uname -a giving partial name with in 8 characters.

root@convert15:.../root # uname -a
HP-UX convert1 B.11.11 U 9000/785 468273748 unlimited-user license
root@convert15:.../root #
root@convert15:.../root # uname -S convert15
Nodename must be less than9 characters
root@convert15:.../root #

Note: its the issue in setting hostname display in uname -a o/p only!!


any solution for this?

thnx much in advance

Rgds
Sree


14 REPLIES
Torsten.
Acclaimed Contributor

Re: host name issue in 11.11

Witch 11.11 you are limited to 8 chars, AFAIR.

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!   
Manix
Honored Contributor

Re: host name issue in 11.11

By default is 11.11 the host name can`t be more then 8 characters .

there is a way to do it but it`s not secure & highly recommended as it causes a security exception if you still want it i may sent it to you.
HP-UX been always lovable - Mani Kalra
Sreer
Valued Contributor

Re: host name issue in 11.11

Hi manix,

Pls send me the procedure to do it.

Its for my testing purpose only.

I can comprimise the security here.

Rgds
Sree
Manix
Honored Contributor

Re: host name issue in 11.11

I did the tests too some time back !!

let me search it ..will post EOD

Thanks & Regards

Manix
HP-UX been always lovable - Mani Kalra
Sreer
Valued Contributor

Re: host name issue in 11.11

Hi Manix,

Thnx for help.
I will wait for your feedback on this.

Rgds
Sree
Pete Randall
Outstanding Contributor

Re: host name issue in 11.11

Have a look at Bill Hassel's detailed and excellent response in this post:

http://h30499.www3.hp.com/t5/System-Administration/increasing-max-length-of-uname/m-p/2651570#M46143

Pete


Pete
Manix
Honored Contributor
Solution

Re: host name issue in 11.11

NOTE :: this is a workaround ..not recommended
& secure ..i tested it a year back !!

Referred to PHCO_21833 for 11.00 which states that libpam_unix.1 which is one of the PAM library function checks the the existence of a file called "I_ACCEPT_RESPONSIBILITY_FOR_BYPASSING_SECURITY_CHECKS" in the directory /etc/default.

If this file exists then user may have login name with more than 8 characters.

There is not need to install any patch for libpam_unix.1 from 11.11 onwards as this functionality is enabled by default but we need to create the file manually.

To resolve the issue tried following steps : -

1) cd /etc/default

2)touch I_ACCEPT_RESPONSIBILITY_FOR_BYPASSING_SECURITY_CHECKS

3) jets 11.11: /etc/default # ls -l
total 48
-rw-rw-rw- 1 root sys 0 Mar 31 07:37 I_ACCEPT_RESPONSIBILITY_FOR_BYPASSING_SECURITY_CHECKS
-r--r--r-- 1 bin bin 11 Apr 21 2008 fs
-r--r--r-- 1 root root 626 Jan 22 2007 nlspath
-r--r--r-- 1 bin bin 84 Feb 28 2006 useradd

4) vi /etc/paswd

and added a line ( manually created the directory /home/test) testtester:*:992:20::/home/test:/sbin/sh

5)Created the password for user
passwd testtester
Changing password for testtester
New password:
Re-enter new password:
Passwd successfully changed

6) tried to login

HP-UX jets B.11.11 A 9000/800 (tc)
login: testtester
Password:

Log in sucessfull

Thanks & Regards

Manix
HP-UX been always lovable - Mani Kalra
Torsten.
Acclaimed Contributor

Re: host name issue in 11.11

Manix, hostname, not username.

Look at the subject.


However, good information.

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!   
Manix
Honored Contributor

Re: host name issue in 11.11

Hello Torsen !!

U r always right !! will search more ..

thanks for yr guidance.

Regards
Manix

HP-UX been always lovable - Mani Kalra
Sreer
Valued Contributor

Re: host name issue in 11.11

Hi Manix!!!
iam surprised and bit afraid.

we started the discussion about the hostname issue..but seems you moved to the login names that are more than 8 characters?

could you pls clarify?

rgds
Sree
Manix
Honored Contributor

Re: host name issue in 11.11

Hello Sree !!

sorry for some confusion here ..posting too many thread today - ))

in regard to hostname i will go with Bill as
below.

Edit the file: /etc/rc.config.d/netconf and locate the line:

HOSTNAME="goofy"

Add a new line:

NODENAME="goofy"

and change HOSTNAME to:

HOSTNAME="goofythegreat"

or whatever.

Now be sure to edit /etc/hosts to include the short uname and the long hostname (as well as the FQDN or fully qualified domain name) appear in /etc/hosts.

Then to avoid delays and problems with DNS, edit gthe /etc/nsswitch.conf file and change the hosts: line to read

hosts: files[NOTFOUND=continue UNAVAIL=continue] dns

This ensure high reliability (in case of a DNS failure) and low network load for unnecessary DNS requests.

Now your system is ready to reboot, but if you want to verify that all is well, you can make the changes by hand too:

uname -S goofy
hostname goofythegreat

This looks the max possibility so far .

Will post if i am able to find more on this.

Thanks & Regards

Manix
HP-UX been always lovable - Mani Kalra
Sreer
Valued Contributor

Re: host name issue in 11.11

Hi Manix,
No problems!

I have seen you are working hard and seen your replies in many threads today!!!

excellent I really appreciate you!

If possible can u pls provide your personal mailing adress ,incase of any help I can contact you directly if you dont mind :-)

pls pardon if my request is wrong.

Rgds
Sree
RASHMI
Trusted Contributor

Re: host name issue in 11.11

Hi Sreer,

Thanks for helping Manix,

It would be nice if the discussion is not diverted to personal email ids. This could potentially generate spam mails for you and is best to resolve the issues within the forum, this way, other members too will learn from the answers that come by.

Thanks & Regards,
Rashmi
Forum Moderator
Thanks,
Rashmi
Forum Moderator
Sreer
Valued Contributor

Re: host name issue in 11.11

Thnx for help .
This case is closed.

rgds
Sree